Replace node-config with packages/server/config
This commit is contained in:
parent
a5ef6bd981
commit
0a7442a932
@ -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",
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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 = {
|
||||
|
||||
2
packages/server/src/config/index.ts
Normal file
2
packages/server/src/config/index.ts
Normal file
@ -0,0 +1,2 @@
|
||||
export * from './Config'
|
||||
export * from './ConfigReader'
|
||||
Loading…
x
Reference in New Issue
Block a user