Skip to content

← All questions

The generated env yaml points api at our copilot host instead of our API

Example threads. These questions and answers were written by the SDODS team to document real problems and how to fix them. The people named are illustrative, not real users. Questions asked on this site are marked new.

envs/staging.yaml came out with:

yaml
api:
  baseUrl: https://copilot.example.com

That is a different service entirely. The correct value is in the same .env.example file that analyze read:

text
line 40:  SIM_AGENT_API_URL=https://copilot.example.com
line 79:  NEXT_PUBLIC_API_URL=http://localhost:3000/api

So it is not that it could not find the right one. It found both and chose the wrong one. Is there a way to tell it which variable to trust?

2 answers

Know the answer?

Wrap commands and output in triple backticks and they will render as a code block.

Checking whether you’re signed in…

Have a different question? Ask it.

Related