Initial commit

This commit is contained in:
2025-07-21 20:35:19 +00:00
commit f10bf53522
29 changed files with 22699 additions and 0 deletions

17
config/index.ts Normal file
View File

@ -0,0 +1,17 @@
import * as dotenv from 'dotenv';
dotenv.config();
export const deFaultValues = {
ENV: 'production',
PLAYGROUND_GRAPHQL: 'false',
WHITELIST_URLS: 'http://localhost',
PORT: '4000',
};
export const config = {
ENV: process.env.ENV,
PLAYGROUND_GRAPHQL: process.env.PLAYGROUND_GRAPHQL === 'true' ? true : false,
WHITELIST_URLS: process.env.WHITELIST_URLS ? process.env.WHITELIST_URLS.split(',') : deFaultValues.WHITELIST_URLS,
PORT: process.env.PORT,
};