From a6bd42856afbc0e38d64ce4fc3680df0a1cee00f Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Wed, 27 Jan 2021 15:00:24 +0100 Subject: [PATCH] - fixed config import - default for STYLEGUIDE_DEV config --- webapp/config/index.js | 2 +- webapp/nuxt.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/config/index.js b/webapp/config/index.js index 68c220533..ccc30da73 100644 --- a/webapp/config/index.js +++ b/webapp/config/index.js @@ -11,8 +11,8 @@ const environment = { DEBUG: process.env.NODE_ENV !== 'production' || false, PRODUCTION: process.env.NODE_ENV === 'production' || false, NUXT_BUILD: process.env.NUXT_BUILD || '.nuxt', + STYLEGUIDE_DEV: process.env.STYLEGUIDE_DEV || false, RELEASE: process.env.release, - STYLEGUIDE_DEV: process.env.STYLEGUIDE_DEV, } const server = { diff --git a/webapp/nuxt.config.js b/webapp/nuxt.config.js index d772eb339..912710ad8 100644 --- a/webapp/nuxt.config.js +++ b/webapp/nuxt.config.js @@ -2,7 +2,7 @@ import path from 'path' import manifest from './constants/manifest.js' import metadata from './constants/metadata.js' -const CONFIG = require('./config') // we need to use require since this is only evaluated at compile time. +const CONFIG = require('./config').default // we need to use require since this is only evaluated at compile time. const styleguidePath = '../styleguide' const styleguideStyles = CONFIG.STYLEGUIDE_DEV