File tree Expand file tree Collapse file tree 3 files changed +148
-105
lines changed Expand file tree Collapse file tree 3 files changed +148
-105
lines changed Original file line number Diff line number Diff line change 11import createMDX from '@next/mdx'
2+ import bundleAnalyzer from '@next/bundle-analyzer'
23
34/** @type {import('next').NextConfig } */
45const nextConfig = {
@@ -25,6 +26,10 @@ const nextConfig = {
2526 } ,
2627} ;
2728
29+ const withBundleAnalyzer = bundleAnalyzer ( {
30+ enabled : process . env . ANALYZE === 'true' ,
31+ } )
32+
2833const withMDX = createMDX ( {
2934 extension : / \. ( m d | m d x ) $ / ,
3035 options : {
@@ -33,4 +38,4 @@ const withMDX = createMDX({
3338 }
3439} )
3540
36- export default withMDX ( nextConfig ) ;
41+ export default withBundleAnalyzer ( withMDX ( nextConfig ) ) ;
Original file line number Diff line number Diff line change 77 "build" : " next build" ,
88 "postbuild" : " next-image-export-optimizer && next-sitemap" ,
99 "start" : " next start" ,
10- "lint" : " next lint"
10+ "lint" : " next lint" ,
11+ "analyze" : " ANALYZE=true next build"
1112 },
1213 "dependencies" : {
13- "@chtc/web-components" : " ^0 .0.0-51 " ,
14+ "@chtc/web-components" : " ^1 .0.10 " ,
1415 "@emotion/cache" : " ^11.14.0" ,
1516 "@emotion/react" : " ^11.14.0" ,
1617 "@emotion/styled" : " ^11.14.1" ,
1920 "@mui/icons-material" : " ^7.3.1" ,
2021 "@mui/material" : " ^7.3.1" ,
2122 "@mui/material-nextjs" : " ^7.3.0" ,
23+ "@next/bundle-analyzer" : " ^15.5.3" ,
2224 "@next/mdx" : " ^15.5.0" ,
2325 "@socialgouv/matomo-next" : " ^1.9.2" ,
2426 "@stefanprobst/rehype-extract-toc" : " ^3.0.0" ,
You can’t perform that action at this time.
0 commit comments