✨ Dynamic Path
This commit is contained in:
parent
bf59d4a014
commit
a51793bc4f
@ -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')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user