diff --git a/server/routes/api/[...path].ts b/server/routes/api/[...path].ts index 65b218b..7f012c5 100644 --- a/server/routes/api/[...path].ts +++ b/server/routes/api/[...path].ts @@ -7,7 +7,7 @@ export default defineEventHandler(async (event) => { { throw new Error(); } - return proxyRequest(event, 'http://localhost:8089' + event.path, { + return proxyRequest(event, process.env.NUXT_PUBLIC_BASE_URL + event.path, { fetchOptions: { headers: { Authorization: "Basic " + Buffer.from(user + ':' + password).toString('base64')