From a65a6e692a48060dd174a1c8a6dc027a0f9f561e Mon Sep 17 00:00:00 2001 From: Jeff Escalante Date: Fri, 12 Jun 2020 14:53:54 -0400 Subject: [PATCH] adjust environment variables --- website/netlify.toml | 2 +- website/next.config.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/website/netlify.toml b/website/netlify.toml index 52eb75214..8abee246b 100644 --- a/website/netlify.toml +++ b/website/netlify.toml @@ -7,7 +7,7 @@ command = "npm run static" [context.production] - environment = { HASHI_ENV = "production", NODE_ENV = "production"} + environment = { HASHI_ENV = "production" } [context.deploy-preview] environment = { HASHI_ENV = "staging" } diff --git a/website/next.config.js b/website/next.config.js index 8c0b4ce07..68a8ec383 100644 --- a/website/next.config.js +++ b/website/next.config.js @@ -1,5 +1,7 @@ const withHashicorp = require('@hashicorp/nextjs-scripts') +console.log(`Environment: ${process.env.HASHI_ENV}`) + module.exports = withHashicorp({ defaultLayout: true, transpileModules: ['is-absolute-url', '@hashicorp/react-mega-nav'],