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 18cf1ab commit 77e7796Copy full SHA for 77e7796
1 file changed
packages/razzle/config/env.js
@@ -81,12 +81,10 @@ function getClientEnvironment(target, options) {
81
}
82
);
83
// Stringify all values so we can feed into Webpack DefinePlugin
84
- const stringified = {
85
- 'process.env': Object.keys(raw).reduce((env, key) => {
86
- env[key] = JSON.stringify(raw[key]);
87
- return env;
88
- }, {}),
89
- };
+ const stringified = Object.keys(raw).reduce((env, key) => {
+ env[`process.env.${key}`] = JSON.stringify(raw[key]);
+ return env;
+ }, {});
90
91
return { raw, stringified };
92
0 commit comments