add comment to webpack config
This commit is contained in:
@@ -315,6 +315,7 @@ const serverConfig = {
|
|||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new webpack.DefinePlugin({
|
new webpack.DefinePlugin({
|
||||||
|
// replace any env variables in client-side code like PORT and NODE_ENV with actual values
|
||||||
'process.env': JSON.stringify(envVars),
|
'process.env': JSON.stringify(envVars),
|
||||||
'process.env.NODE_ENV': JSON.stringify(
|
'process.env.NODE_ENV': JSON.stringify(
|
||||||
isProd ? 'production' : 'development'
|
isProd ? 'production' : 'development'
|
||||||
|
|||||||
Reference in New Issue
Block a user