Skip to content

Breaking change - bridge API key is mandatory #2650

Open
@cen1

Description

@cen1

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

  1. Run without bridge API key
  2. Observe exception on startup

Expected behavior

Make config optional or document it

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions