fix(mining-*): add parent .env path for shared config
All mining services need to read shared environment variables (JWT_SECRET, DATABASE_URL, etc.) from backend/services/.env Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
0420b0acab
commit
7a469be7cd
|
|
@ -12,7 +12,11 @@ import { AdminAuthGuard } from './shared/guards/admin-auth.guard';
|
|||
imports: [
|
||||
ConfigModule.forRoot({
|
||||
isGlobal: true,
|
||||
envFilePath: [`.env.${process.env.NODE_ENV || 'development'}`, '.env'],
|
||||
envFilePath: [
|
||||
`.env.${process.env.NODE_ENV || 'development'}`,
|
||||
'.env',
|
||||
'../.env', // 父目录共享 .env
|
||||
],
|
||||
}),
|
||||
InfrastructureModule,
|
||||
ApplicationModule,
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ import { JwtAuthGuard } from './shared/guards/jwt-auth.guard';
|
|||
envFilePath: [
|
||||
`.env.${process.env.NODE_ENV || 'development'}`,
|
||||
'.env',
|
||||
'../.env', // 父目录共享 .env
|
||||
],
|
||||
ignoreEnvFile: false,
|
||||
}),
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ import { JwtAuthGuard } from './shared/guards/jwt-auth.guard';
|
|||
envFilePath: [
|
||||
`.env.${process.env.NODE_ENV || 'development'}`,
|
||||
'.env',
|
||||
'../.env', // 父目录共享 .env
|
||||
],
|
||||
ignoreEnvFile: false,
|
||||
}),
|
||||
|
|
|
|||
Loading…
Reference in New Issue