You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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
Then in shell
export FOO_BAR=bizzy
Additional context
No response
The text was updated successfully, but these errors were encountered: