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

env.local env does not override shell env #1714

Open
MichaelrMentele opened this issue May 27, 2024 · 0 comments
Open

env.local env does not override shell env #1714

MichaelrMentele opened this issue May 27, 2024 · 0 comments
Labels
docs Improvements or additions to documentation

Comments

@MichaelrMentele
Copy link

MichaelrMentele commented May 27, 2024

Description

Following the steps from here: https://sdk.vercel.ai/docs/getting-started/nextjs-app-router

When running the app, my local env does not resolve/clobber the shell env. Basically if I have the env set and exported at the shell level I would have though env.local would be more specific and would have overridden the value set in the shell. I can see it making sense both ways I suppose but wanted to flag it since it confused me for a good 15 m.

Code example

# .env.local
FOO_BAR=baz

Then in shell
export FOO_BAR=bizzy

Additional context

No response

@MichaelrMentele MichaelrMentele changed the title Getting Invalid API Key when no API Key is Set env.local env does not override shell env May 27, 2024
@lgrammel lgrammel added the docs Improvements or additions to documentation label May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants