Fixed environment setup
All checks were successful
Build and publish / Git Tag (push) Successful in 3s
Build and publish / Build Container (push) Successful in 20s

This commit is contained in:
Zakary Timson 2025-04-17 12:19:56 -04:00
parent b3206a9874
commit f89b1721f9
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
FROM node:alpine
ARG PORT
ARG PORT="3000"
ENV PORT=$PORT
COPY . .

View File

@ -7,7 +7,7 @@ dotenv.config();
dotenv.config({path: '.env.local', override: true});
export const environment = {
port: process.env['PORT'] || 3000,
port: process.env['PORT'] ? +process.env['PORT'] : 3000,
production: !process.env.NODE_ENV || ['prod', 'production'].includes(process.env.NODE_ENV.toLowerCase()),
tickers: process.env['TICKERS']?.split(',') || [],
token: process.env['TOKEN'],