https://cypress.io logo
Cypress.env.json
# i-need-help
l
Hello good night, I have my
Cypress.env.json
with my env vars, is there any way to make a new file called for example:
Cypress.env.local.json
and then I can keep
Cypress.env.json
empty and only add the values in my
Cypress.env.local.json
? Since It's a bit annoying do add the values when I'm in LocalHost and Remove when I'm pushing to environment. Thanks you.
e
Absolutely. Just override the default config file using the ‘—config-file’ flag when running Cypress. This link has examples if needed https://docs.cypress.io/guides/guides/command-line