Add PRODUCTION env to Netlify context.production

This commit is contained in:
Sam Carlton 2021-06-11 15:08:18 -05:00
parent 312a3bd04a
commit d1a30c9aa2

View file

@ -10,6 +10,17 @@
CI = "1"
# Production context: all deploys from the Production branch set in your sites
# deploy contexts will inherit these settings.
[context.production]
command = "npm run generate --quiet && npm test"
environment = { NODE_ENV = "PRODUCTION" }
# https://docs.netlify.com/configure-builds/file-based-configuration/#redirects
# old node redirect