Finalizing
All checks were successful
Build and publish / Git Tag (push) Successful in 3s
Build and publish / Build Container (push) Successful in 19s

This commit is contained in:
Zakary Timson 2025-04-17 12:08:52 -04:00
parent 26d16fe0a4
commit a5f809eca5
7 changed files with 24 additions and 3 deletions

2
.env Normal file
View File

@ -0,0 +1,2 @@
TOKEN=
TICKERS=AAPL,GOLD,GOOG,NASD,NVDA

0
.env.local Normal file
View File

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
.idea
vscode
node_modules
.env.local

0
README.md Normal file
View File

12
package-lock.json generated
View File

@ -12,6 +12,7 @@
"@ztimson/utils": "^0.23.22",
"compression": "^1.7.5",
"cors": "^2.8.5",
"dotenv": "^16.5.0",
"express": "^4.21.2"
},
"devDependencies": {
@ -468,6 +469,17 @@
"node": ">=0.3.1"
}
},
"node_modules/dotenv": {
"version": "16.5.0",
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.5.0.tgz",
"integrity": "sha512-m/C+AwOAr9/W1UOIZUo232ejMNnJAJtYQjUbHoNTBNTJSvqzzDh7vnrei3o3r3m9blf6ZoDkvcw0VmozNRFJxg==",
"engines": {
"node": ">=12"
},
"funding": {
"url": "https://dotenvx.com"
}
},
"node_modules/dunder-proto": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",

View File

@ -13,6 +13,7 @@
"@ztimson/utils": "^0.23.22",
"compression": "^1.7.5",
"cors": "^2.8.5",
"dotenv": "^16.5.0",
"express": "^4.21.2"
},
"devDependencies": {

View File

@ -1,10 +1,15 @@
import packageJson from '../package.json';
import process from 'node:process';
import * as dotenv from 'dotenv';
// Load `.env`
dotenv.config();
dotenv.config({path: '.env.local', override: true});
export const environment = {
port: process.env['port'] ?? 3000,
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'],
tickers: process.env['TICKERS']?.split(',') ?? [],
token: process.env['TOKEN'],
version: packageJson.version
}