Skip to content

DEV_MODE env var incorrectly switches API URL #6

@grainme

Description

@grainme

Description

The CLI switches from the production API to the local API based only on the presence of DEV_MODE. This causes incorrect behavior when DEV_MODE is set!

Current Behavior

  • DEV_MODE=false still enables dev mode
  • CLI uses local API instead of production
  • Valid stages fail to resolve
95 test bc2adf5a-ad89-4f24-b9b9-ebe78c3b2435
Error: failed to fetch tests: stage 'bc2adf5a-ad89-4f24-b9b9-ebe78c3b2435' not found

→ Check the UUID and try again
Usage:
  95 test <stage-uuid> [flags]

Flags:
  -h, --help   help for test

// hacky solution for my case
export DEV_MODE=false

Expected Behavior

  • Use production API by default
  • Handle dev mode differently!

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions