From d1a30c9aa244154494797515028eef2da9d32e55 Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Fri, 11 Jun 2021 15:08:18 -0500 Subject: [PATCH] Add PRODUCTION env to Netlify context.production --- netlify.toml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/netlify.toml b/netlify.toml index ece8ac8..bb0d017 100644 --- a/netlify.toml +++ b/netlify.toml @@ -10,6 +10,17 @@ CI = "1" + + +# Production context: all deploys from the Production branch set in your site’s +# 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