Fix NODE_ENV issue on yarn start

This commit is contained in:
Alex Gleason 2020-04-16 18:50:41 -05:00
parent 14cdd31388
commit 70b04a72cc
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@
"name": "soapbox-fe",
"version": "0.0.0",
"scripts": {
"start": "npx webpack-dev-server --config webpack/development.js",
"start": "NODE_ENV=development npx webpack-dev-server --config webpack/development.js",
"dev": "${npm_execpath} run start",
"build:development": "NODE_ENV=development npx webpack --config webpack/development.js",
"build:production": "NODE_ENV=production npx webpack --config webpack/production.js",

View file

@ -6,7 +6,7 @@ const { safeLoad } = require('js-yaml');
const { readFileSync } = require('fs');
const configPath = join(__dirname, 'config', 'webpacker.yml');
const settings = safeLoad(readFileSync(configPath), 'utf8')[env.RAILS_ENV || env.NODE_ENV];
const settings = safeLoad(readFileSync(configPath), 'utf8')[env.NODE_ENV];
const themePath = join(__dirname, 'config', 'themes.yml');
const themes = safeLoad(readFileSync(themePath), 'utf8');