~jae/neos-headless-manager

a1ef46933be64b060ca386355379b6539e592d10 — Jae Lo Presti (DN0) 7 months ago d67ef7b
db: new environemtn & dbutils
2 files changed, 10 insertions(+), 1 deletions(-)

M src/environment.ts
M src/utils/dbUtils.ts
M src/environment.ts => src/environment.ts +7 -1
@@ 1,2 1,8 @@
import * as dotenv from 'dotenv';

dotenv.config();

export const PRODUCTION: boolean = process.env.NODE_ENV == 'production';
export const HOST: string = process.env.HOST ?? 'localhost';
\ No newline at end of file
export const HOST: string = process.env.HOST ?? 'localhost';

export const SCHEMA_NAME = process.env.DB_NAME ?? 'neosmanager';
\ No newline at end of file

M src/utils/dbUtils.ts => src/utils/dbUtils.ts +3 -0
@@ 1,4 1,7 @@
import knex, { Knex } from "knex";
import * as dotenv from 'dotenv';

dotenv.config();

let db: Knex;