Dynamic Path

This commit is contained in:
Andreas Dinauer 2026-03-22 09:45:20 +01:00
parent bf59d4a014
commit a51793bc4f

View File

@ -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')