Browse Source

webpack config not requried for hot reload in next@11

Abhinav-grd 3 năm trước cách đây
mục cha
commit
033476966e
1 tập tin đã thay đổi với 0 bổ sung5 xóa
  1. 0 5
      next.config.js

+ 0 - 5
next.config.js

@@ -33,11 +33,6 @@ module.exports = withSentryConfig(
                 swSrc: 'src/serviceWorker.js',
                 exclude: [/manifest\.json$/i],
             },
-            webpack: (config) => {
-                config.output.hotUpdateMainFilename =
-                    'static/webpack/[fullhash].[runtime].hot-update.json';
-                return config;
-            },
 
             headers() {
                 return [