Reapply "fix(server): respect externally set PAPERCLIP_API_URL env var"

This reverts commit 119bf6336e.
This commit is contained in:
2026-04-12 09:07:31 -04:00
parent 119bf6336e
commit 9c7a17e16c
+3 -1
View File
@@ -553,7 +553,9 @@ export async function startServer(): Promise<StartedServer> {
: runtimeListenHost;
process.env.PAPERCLIP_LISTEN_HOST = runtimeListenHost;
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, {
deploymentMode: config.deploymentMode,