My definitions from .env file are undefined for so...
# help
a
My definitions from .env file are undefined for some reason. I'm doing this to pass them into the lambda functions in SST index.js file:
Copy code
app.setDefaultFunctionProps({
      environment: {
         APP_DOMAIN: process.env.APP_DOMAIN,
         EMAIL_FROM: process.env.EMAIL_FROM,
      },
   });
is that maybe a limitation of the local dev environment, or should this work there, too?
hmmm, it works now for some reason. do you maybe have to manually reload the dev environment, because it doesn't pick changes up in .env file automatically?
t
Yep that's right, we load .env when sst start is first started
a
good to know, thx
j
@Frank @thdxr Is it possible to reload the
.env
as well or is that tricky to do?
f
We can watch
.env
files and rebuild infrastructure on change. What do u think @thdxr?