- fixed config import

- default for STYLEGUIDE_DEV config
This commit is contained in:
Ulf Gebhardt 2021-01-27 15:00:24 +01:00
parent 9f549371f7
commit a6bd42856a
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD
2 changed files with 2 additions and 2 deletions

View File

@ -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 = {

View File

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