mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-20 21:18:13 +02:00
refactor(web): update environment variable references to use HOSTED_BACKEND_URL for improved consistency across workflows and scripts
This commit is contained in:
parent
695da76f2e
commit
97ac02eba8
3 changed files with 9 additions and 3 deletions
|
|
@ -43,11 +43,13 @@ export async function startNextServer(): Promise<void> {
|
|||
|
||||
const standalonePath = getStandalonePath();
|
||||
const serverScript = path.join(standalonePath, 'server.js');
|
||||
const backendInternalUrl = process.env.SURFSENSE_BACKEND_INTERNAL_URL || process.env.HOSTED_BACKEND_URL;
|
||||
|
||||
const child = utilityProcess.fork(serverScript, [], {
|
||||
cwd: standalonePath,
|
||||
env: {
|
||||
...process.env,
|
||||
...(backendInternalUrl ? { SURFSENSE_BACKEND_INTERNAL_URL: backendInternalUrl } : {}),
|
||||
PORT: String(serverPort),
|
||||
// Loopback bind: avoids 0.0.0.0 leaking into request.url and redirect origins.
|
||||
HOSTNAME: SERVER_HOST,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue