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'm not sure either. dont have time to go through this in detail right now. if you have the time, this one should be a matter of placing a few strategic console.log's inside your netlify-lambda instance to figure out where your NODE_ENV is getting introduced.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I've followed the excellent @sw-yx static/dynamic tutorial and I'm trying to build on it to include local env vars in development
I've set up a
.env.development
file and I'm trying to useNODE_ENV
to set the correct.env
filepath in development.But when I run the start scripts (
gatsby develop
andnetlify-lambda serve src/lambda
), I get two differentNODE_ENV
s 😕gatsby-config.js
it logs "development"src/lambda/hello.js
it logs "production" 🤕Apologies if this is obvious / expected behaviour, but I've run out of ideas 😖
The text was updated successfully, but these errors were encountered: