Skip to content

Commit 422b44e

Browse files
committed
feat: code splitting step
1 parent f6c2c3f commit 422b44e

20 files changed

+923
-60
lines changed

Diff for: next.config.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import withBundleAnalyzer from '@next/bundle-analyzer'
2+
13
/**
24
* @type {import('next').NextConfig}
35
*/
@@ -7,4 +9,6 @@ const nextConfig = {
79
}
810
}
911

10-
export default nextConfig
12+
export default withBundleAnalyzer({ enabled: process.env.ANALYZE === 'true' })(
13+
nextConfig
14+
)

0 commit comments

Comments
 (0)