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

vercel dev does not load .env.local or process env #178

Open
GeeWee opened this issue Nov 5, 2024 · 0 comments
Open

vercel dev does not load .env.local or process env #178

GeeWee opened this issue Nov 5, 2024 · 0 comments

Comments

@GeeWee
Copy link

GeeWee commented Nov 5, 2024

I would expect the rust runtime to act approximately like NextJS and load .env and .env.local when running the dev command.

However it only seems to pick environment variables from .env and not .env.local. It seems like this logic is located here in the vercel CLI and hard-coded. I assume this means the runtime is responsible for handling of any other .env files?

If that's the case, is there any chance we can export env variables defined in the process for use in the rust serverless functions, or manually pick up and export .env.local or similar?

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

No branches or pull requests

1 participant