Skip to content

Commit

Permalink
Fix handling of NODE_ENV in pre serve
Browse files Browse the repository at this point in the history
  • Loading branch information
devcshort committed Aug 23, 2023
1 parent f8a586b commit 2b65291
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/client/webpack/pre-serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ const createAppFromStrapi = require('./createAppFromStrapi');
const getAppTheme = require('./getAppTheme');
const fs = require('fs-extra');

const isDev = process.env.NODE_ENV === 'development';
const isDev =
process.env.NODE_ENV === 'development' || process.env.NODE_ENV == null;

if (isDev) {
const dir = process.cwd();
Expand Down

0 comments on commit 2b65291

Please sign in to comment.