Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Pass .env file variables to getPlatformProxy #738

Open
james-elicx opened this issue Apr 9, 2024 · 0 comments
Open

Pass .env file variables to getPlatformProxy #738

james-elicx opened this issue Apr 9, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@james-elicx
Copy link
Contributor

james-elicx commented Apr 9, 2024

Wrangler's getPlatformProxy() does not read variables from the .env file. This is problematic as we are asking people to use a utility in a Node.js dev server that expects people to use a .env file, instead of Wrangler's custom way of reading env vars.

We should look at reading the variables defined in .env files in next-on-pages' wrapper around getPlatformProxy(), and forward these env vars to the call to getPlatformProxy().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant