Commit fe43a155 authored by nanahira's avatar nanahira

fix

parent aa00c561
Pipeline #14532 failed with stages
in 30 seconds
......@@ -10,6 +10,8 @@ import { TypeOrmModule } from '@nestjs/typeorm';
ConfigModule.forRoot({
load: [loadConfig],
isGlobal: true,
ignoreEnvVars: true,
ignoreEnvFile: true,
}),
TypeOrmModule.forRootAsync({
inject: [ConfigService],
......
......@@ -9,6 +9,8 @@ import { loadConfig } from './utility/config';
ConfigModule.forRoot({
load: [loadConfig],
isGlobal: true,
ignoreEnvVars: true,
ignoreEnvFile: true,
}),
],
controllers: [AppController],
......
......@@ -21,6 +21,7 @@ export async function loadConfig(): Promise<Config> {
}
return {
...defaultConfig,
...process.env,
...readConfig,
};
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment