set public next env vars from config

This commit is contained in:
Milo Schwartz 2024-10-12 21:23:12 -04:00
parent cf1de2253b
commit 61fca6a1f6
No known key found for this signature in database
7 changed files with 69 additions and 33 deletions

View file

@ -37,7 +37,10 @@ export function buildTraefikConfig(
[middlewareName]: {
plugin: {
[middlewareName]: {
apiBaseUrl: config.app.internal_base_url,
apiBaseUrl: new URL(
"/api/v1",
`http://${config.server.internal_hostname}:${config.server.internal_port}`,
).href,
},
},
},