File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -186,6 +186,13 @@ module.exports = withBundleAnalyzer(withSourceMaps({
186
186
webpack5 : true ,
187
187
} ,
188
188
189
+ resolve : {
190
+ fallback : {
191
+ // Fixes npm packages that depend on `fs` module
192
+ fs : false ,
193
+ } ,
194
+ } ,
195
+
189
196
/**
190
197
* The webpack function is executed twice, once for the server and once for the client.
191
198
* This allows you to distinguish between client and server configuration using the isServer property.
@@ -218,11 +225,6 @@ module.exports = withBundleAnalyzer(withSourceMaps({
218
225
console . debug ( `[webpack] Building release "${ APP_VERSION_RELEASE } " using NODE_ENV="${ process . env . NODE_ENV } " ${ process . env . IS_SERVER_INITIAL_BUILD ? 'with IS_SERVER_INITIAL_BUILD="1"' : '' } ` ) ;
219
226
}
220
227
221
- // Fixes npm packages that depend on `fs` module
222
- config . node = {
223
- fs : 'empty' ,
224
- } ;
225
-
226
228
// XXX See https://github.com/vercel/next.js/blob/canary/examples/with-sentry-simple/next.config.js
227
229
// In `pages/_app.js`, Sentry is imported from @sentry/node. While
228
230
// @sentry /browser will run in a Node.js environment, @sentry/node will use
You can’t perform that action at this time.
0 commit comments