cypress-io / netlify-plugin-cypress

Runs Cypress end-to-end tests after Netlify builds the site but before it is deployed

Home Page:https://www.cypress.io/blog/2020/03/30/run-cypress-tests-on-netlify-using-a-single-line/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add environment variables

danilo-as opened this issue · comments

Is your feature request related to a problem? Please describe.
My project uses "Netlify Functions" and these functions need environment variables to work properly. My problem is that the environment variable used by the functions is not available when running the project in development mode. this is my setup.
Screenshot from 2022-07-20 07-17-06

Describe the solution you'd like
Being able to add the environment variables that my project needs so that when the commands of the "start" property are executed, they are already available.
e.g. on github actions:
Screenshot from 2022-07-20 07-20-22

Describe alternatives you've considered
Create the variables with the prefix "CYPRESS_"
image