forked from farhoodlabs/paperclip
Reapply "fix(server): respect externally set PAPERCLIP_API_URL env var"
This reverts commit 119bf6336e.
This commit is contained in:
+3
-1
@@ -553,7 +553,9 @@ export async function startServer(): Promise<StartedServer> {
|
|||||||
: runtimeListenHost;
|
: runtimeListenHost;
|
||||||
process.env.PAPERCLIP_LISTEN_HOST = runtimeListenHost;
|
process.env.PAPERCLIP_LISTEN_HOST = runtimeListenHost;
|
||||||
process.env.PAPERCLIP_LISTEN_PORT = String(listenPort);
|
process.env.PAPERCLIP_LISTEN_PORT = String(listenPort);
|
||||||
process.env.PAPERCLIP_API_URL = `http://${runtimeApiHost}:${listenPort}`;
|
if (!process.env.PAPERCLIP_API_URL) {
|
||||||
|
process.env.PAPERCLIP_API_URL = `http://${runtimeApiHost}:${listenPort}`;
|
||||||
|
}
|
||||||
|
|
||||||
setupLiveEventsWebSocketServer(server, db as any, {
|
setupLiveEventsWebSocketServer(server, db as any, {
|
||||||
deploymentMode: config.deploymentMode,
|
deploymentMode: config.deploymentMode,
|
||||||
|
|||||||
Reference in New Issue
Block a user