forked from farhoodlabs/paperclip
Revert "fix(server): respect externally set PAPERCLIP_API_URL env var"
This reverts commit 6b30178766.
This commit is contained in:
+1
-3
@@ -553,9 +553,7 @@ 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);
|
||||||
if (!process.env.PAPERCLIP_API_URL) {
|
process.env.PAPERCLIP_API_URL = `http://${runtimeApiHost}:${listenPort}`;
|
||||||
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