Skip to content

Commit 954c05e

Browse files
committed
Update packages
1 parent c735325 commit 954c05e

File tree

3 files changed

+148
-105
lines changed

3 files changed

+148
-105
lines changed

next.config.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import createMDX from '@next/mdx'
2+
import bundleAnalyzer from '@next/bundle-analyzer'
23

34
/** @type {import('next').NextConfig} */
45
const nextConfig = {
@@ -25,6 +26,10 @@ const nextConfig = {
2526
},
2627
};
2728

29+
const withBundleAnalyzer = bundleAnalyzer({
30+
enabled: process.env.ANALYZE === 'true',
31+
})
32+
2833
const withMDX = createMDX({
2934
extension: /\.(md|mdx)$/,
3035
options: {
@@ -33,4 +38,4 @@ const withMDX = createMDX({
3338
}
3439
})
3540

36-
export default withMDX(nextConfig);
41+
export default withBundleAnalyzer(withMDX(nextConfig));

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
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",
@@ -19,6 +20,7 @@
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",

0 commit comments

Comments
 (0)