mirror of
https://github.com/usatiuk/writer.git
synced 2025-10-29 00:17:48 +01:00
fix ormconfig.dev.json not being found
This commit is contained in:
@@ -25,6 +25,12 @@ const development: IConfig = {
|
||||
...production,
|
||||
env: EnvType.development,
|
||||
jwtSecret: "DEVSECRET",
|
||||
dbConnectionOptions:
|
||||
process.env.NODE_ENV === "development"
|
||||
? fs.existsSync("./ormconfig.dev.json")
|
||||
? JSON.parse(fs.readFileSync("./ormconfig.dev.json").toString())
|
||||
: null
|
||||
: null,
|
||||
};
|
||||
|
||||
const test: IConfig = {
|
||||
|
||||
Reference in New Issue
Block a user