Open
Description
Description
Updated to 1.88.0 and startup fails:
cgw-web-1 | [Nest] 1 - 07/15/2025, 8:11:16 PM ERROR [ExceptionHandler] TypeError: Configuration key "bridge.apiKey" does not exist
cgw-web-1 | at ConfigService.getOrThrow (/node_modules/@nestjs/config/dist/config.service.js:132:19)
cgw-web-1 | at NestConfigurationService.getOrThrow (/dist/src/config/nest.configuration.service.js:23:35)
cgw-web-1 | at new BridgeApiFactory (/dist/src/datasources/bridge-api/bridge-api.factory.js:31:49)
cgw-web-1 | at Injector.instantiateClass (/node_modules/@nestjs/core/injector/injector.js:373:19)
cgw-web-1 | at callback (/node_modules/@nestjs/core/injector/injector.js:65:45)
cgw-web-1 | at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
cgw-web-1 | at async Injector.resolveConstructorParams (/node_modules/@nestjs/core/injector/injector.js:145:24)
cgw-web-1 | at async Injector.loadInstance (/node_modules/@nestjs/core/injector/injector.js:70:13)
cgw-web-1 | at async Injector.loadProvider (/node_modules/@nestjs/core/injector/injector.js:98:9)
cgw-web-1 | at async Injector.lookupComponentInImports (/node_modules/@nestjs/core/injector/injector.js:297:17)
Setting BRIDGE_API_KEY=123456
allows the service to start up.
Reproduction steps
- Run without bridge API key
- Observe exception on startup
Expected behavior
Make config optional or document it
Additional information
No response