Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

pass environment variables to runtime #549

Closed
YousefED opened this issue Jun 23, 2023 · 1 comment · Fixed by #553
Closed

pass environment variables to runtime #549

YousefED opened this issue Jun 23, 2023 · 1 comment · Fixed by #553

Comments

@YousefED
Copy link

Is your feature request related to a problem? Please describe.
In Vite, I can access environment variables (for example, set in .env.development via import.meta.env.

When playwright-test builds my project, I can't access these variables

Describe the solution you'd like
Have a way to pass env variables to code run via playwright-test.

@hugomrdias
Copy link
Owner

you have process.env available with all the cli env vars, do you require import.meta.env specifically ?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants