adjust environment variables

This commit is contained in:
Jeff Escalante 2020-06-12 14:53:54 -04:00
parent efade11ee2
commit a65a6e692a
No known key found for this signature in database
GPG Key ID: 32D23C61AB5450DB
2 changed files with 3 additions and 1 deletions

View File

@ -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" }

View File

@ -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'],