Update the environment variabels.
This commit is contained in:
parent
33323b5ea1
commit
855eaff323
@ -11,6 +11,8 @@ COPY --from=install /temp/build/node_modules node_modules
|
||||
COPY ./chat-app .
|
||||
|
||||
ENV NODE_ENV=production
|
||||
ENV APP_URL=chat.freedoom.party
|
||||
ENV APP_PORT=3000
|
||||
RUN bun run build
|
||||
|
||||
USER bun
|
||||
|
@ -1722,11 +1722,7 @@ var import_mithril = __toESM(require_mithril(), 1);
|
||||
// frontend/websocket.js
|
||||
function createWebSocket() {
|
||||
let appUrl = "localhost:3000";
|
||||
if (appUrl.includes("localhost")) {
|
||||
appUrl = `//${appUrl}/chat-service`;
|
||||
} else {
|
||||
appUrl = `//${appUrl}/chat-service`;
|
||||
}
|
||||
return new WebSocket(appUrl);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user