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'; ...@@ -10,6 +10,8 @@ import { TypeOrmModule } from '@nestjs/typeorm';
ConfigModule.forRoot({ ConfigModule.forRoot({
load: [loadConfig], load: [loadConfig],
isGlobal: true, isGlobal: true,
ignoreEnvVars: true,
ignoreEnvFile: true,
}), }),
TypeOrmModule.forRootAsync({ TypeOrmModule.forRootAsync({
inject: [ConfigService], inject: [ConfigService],
......
...@@ -9,6 +9,8 @@ import { loadConfig } from './utility/config'; ...@@ -9,6 +9,8 @@ import { loadConfig } from './utility/config';
ConfigModule.forRoot({ ConfigModule.forRoot({
load: [loadConfig], load: [loadConfig],
isGlobal: true, isGlobal: true,
ignoreEnvVars: true,
ignoreEnvFile: true,
}), }),
], ],
controllers: [AppController], controllers: [AppController],
......
...@@ -21,6 +21,7 @@ export async function loadConfig(): Promise<Config> { ...@@ -21,6 +21,7 @@ export async function loadConfig(): Promise<Config> {
} }
return { return {
...defaultConfig, ...defaultConfig,
...process.env,
...readConfig, ...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