How do I override baseUrl via CLI, nothing seems to work. #24871
-
I have tried the following commands:
No matter what, the baseUrl is never changed. I have a config folder with development.json and production.json using the following format:
This is my config file, I have tried commenting out a bunch of code here that could cause conflicts and the baseUrl is still never set via command line so I'm out of ideas.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Figured this out.
The only line I needed to change in my config was the following:
All my tests were using the following:
So I needed to change to:
I can now run the script without any argument and it will use the default |
Beta Was this translation helpful? Give feedback.
Figured this out.
The only line I needed to change in my config was the following:
All my tests were using the following:
So I needed to change to:
I can now run the script without any argument and it will use the default
baseUrl
, or I can runURL="https://google.com/ npm run cypress:open:dev
and thebaseUrl
will change