Replace node-config with packages/server/config

This commit is contained in:
Jerko Steiner 2019-03-12 17:09:21 +05:00
parent a5ef6bd981
commit 0a7442a932
4 changed files with 5 additions and 3 deletions

View File

@ -8,7 +8,6 @@
"@types/bcrypt": "^3.0.0",
"@types/body-parser": "^1.17.0",
"@types/cls-hooked": "^4.2.1",
"@types/config": "0.0.34",
"@types/csurf": "^1.9.35",
"@types/es6-shim": "^0.31.39",
"@types/express": "^4.16.0",

View File

@ -17,7 +17,6 @@
"bcrypt": "^3.0.3",
"body-parser": "^1.18.3",
"cls-hooked": "^4.2.2",
"config": "^3.0.1",
"csurf": "^1.9.0",
"email-validator": "^2.0.4",
"express": "^4.16.4",

View File

@ -1,7 +1,9 @@
import cfg from 'config'
import {ConfigReader} from './config/index'
import {IConfig} from './application'
import URL from 'url'
const cfg = new ConfigReader(__dirname).read()
const baseUrl = URL.parse(cfg.get('app.baseUrl'))
export const config: IConfig = {

View File

@ -0,0 +1,2 @@
export * from './Config'
export * from './ConfigReader'