I'm trying to set the credentials using dotenv (in .env.development and .end.production files).
However, the deployment script ("deploy": "npm run -n \"-r dotenv/config\" && npm run build && gatsby-plugin-s3 deploy") is not picking them up (I confirmed this by passing them explicitly to npm run deploy).
Hello,
I'm trying to set the credentials using dotenv (in
.env.development
and.end.production
files).However, the deployment script (
"deploy": "npm run -n \"-r dotenv/config\" && npm run build && gatsby-plugin-s3 deploy"
) is not picking them up (I confirmed this by passing them explicitly tonpm run deploy
).At the top of
gastby-config.js
I have:Did I miss anything? Thanks!