Skip to content

Commit 9a6741e

Browse files
committed
🔧 chore: add dev dependencies for bundle analysis
1 parent 193c3b4 commit 9a6741e

File tree

3 files changed

+104
-1
lines changed

3 files changed

+104
-1
lines changed

‎pnpm-lock.yaml‎

Lines changed: 97 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎references/nextjs-realtime/next.config.mjs‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/** @type {import('next').NextConfig} */
2+
import NextBundleAnalyzer from "@next/bundle-analyzer";
3+
24
const nextConfig = {
35
images: {
46
remotePatterns: [
@@ -27,4 +29,7 @@ const nextConfig = {
2729
},
2830
};
2931

30-
export default nextConfig;
32+
export default NextBundleAnalyzer({
33+
enabled: process.env.ANALYZE === "true",
34+
openAnalyzer: true,
35+
})(nextConfig);

‎references/nextjs-realtime/package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"zod": "3.22.3"
3131
},
3232
"devDependencies": {
33+
"@next/bundle-analyzer": "^15.0.2",
3334
"@types/node": "^20",
3435
"@types/react": "^18",
3536
"@types/react-dom": "^18",

0 commit comments

Comments
 (0)