fix(frontend): env variable

This commit is contained in:
Halit Aksoy 2024-12-08 23:24:22 +03:00
parent 0c96056f84
commit 5d4ce2799c
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
FROM node:20-alpine3.19 AS build
ARG SERVER_ADDRESS WS_SERVER_ADDRESS
WORKDIR /app
COPY package.json ./

View File

@ -10,7 +10,7 @@ export const LOCAL_WS_SERVER_ADDRESS='http://localhost:5005';
export const server: Server = {
//@ts-ignore
serverAdress: process.env.SERVER_ADDRESS ? `${process.env.SERVER_ADDRESS}` : LOCAL_PORT,
serverAdress: process.env.SERVER_ADDRESS ? `${process.env.SERVER_ADDRESS}` : LOCAL_SERVER_ADDRESS,
//@ts-ignore
wsServerAdress: process.env.WS_SERVER_ADDRESS ? `${process.env.WS_SERVER_ADDRESS}` : LOCAL_WS_SERVER_ADDRESS,
}