feat: Extend docker local setups, remove request URL from API composables

This commit is contained in:
2025-12-23 19:20:14 +01:00
parent 46d6431747
commit 805c66bc4f
11 changed files with 71 additions and 30 deletions

View File

@@ -7,11 +7,7 @@ export function useCommentApi() {
const { serverApiBasePath, clientProxyBasePath } = useRuntimeConfig().public
const basePath = withoutTrailingSlash(
cleanDoubleSlashes(
import.meta.client
? appBaseUrl + clientProxyBasePath
: useRequestURL().origin + clientProxyBasePath + serverApiBasePath
)
cleanDoubleSlashes(import.meta.client ? appBaseUrl + clientProxyBasePath : clientProxyBasePath + serverApiBasePath)
)
const commentApiClient = new CommentApi(