You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to set baseUrl with CYPRESS_BASE_URL via .env file in root folder that near cypress.config.ts.
It will be more comfortable instead setting it in cmd every time.
But it doesn't work. Why I cant do it?
I saw similar issue but it closed cypress-io/github-action#174
Also I want overwrite "visit" command and use CYPRESS_PROXY_TOKEN env from .env file. BUT it also doesn't work. All environment variables are only available within the tests themselves.
Current behavior
I want to set
baseUrl
withCYPRESS_BASE_URL
via.env
file in root folder that near cypress.config.ts.It will be more comfortable instead setting it in cmd every time.
But it doesn't work. Why I cant do it?
I saw similar issue but it closed cypress-io/github-action#174
Also I want overwrite "visit" command and use
CYPRESS_PROXY_TOKEN
env from.env
file. BUT it also doesn't work. All environment variables are only available within the tests themselves.Desired behavior
No response
Test code to reproduce
My config:
My .env file:
My command "visit":
Cypress Version
12.17.3
Node version
18.12.0
Operating System
macOS
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: