We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87e4849 commit 64b7194Copy full SHA for 64b7194
config/env.js
@@ -13,6 +13,9 @@
13
const fs = require('fs');
14
const paths = require('./paths');
15
16
+// Make sure that including paths.js after env.js will read .env variables.
17
+delete require.cache[require.resolve('./paths')];
18
+
19
const NODE_ENV = process.env.NODE_ENV;
20
if (!NODE_ENV) {
21
throw new Error(
0 commit comments