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
I have a NextJS app that needs to use some sst resources. When running sst dev -- next dev everything looks good, except it looks like sst.config.ts is only picking up environment variables from .env. Any other files like .env.local never get loaded. When I remove .env, sst then throws an error because the variables are missing.
From what I understand, is it not supposed to automatically work with .env.{stage} files?
The text was updated successfully, but these errors were encountered:
Ok thanks @jayair. I thought I had tried explicitly setting the stage. We ended up not actually needing it but I'm sure we'll need this functionality soon.
I have a NextJS app that needs to use some sst resources. When running
sst dev -- next dev
everything looks good, except it looks likesst.config.ts
is only picking up environment variables from.env
. Any other files like.env.local
never get loaded. When I remove.env
, sst then throws an error because the variables are missing.From what I understand, is it not supposed to automatically work with .env.{stage} files?
The text was updated successfully, but these errors were encountered: