Skip to content

Commit

Permalink
feat: Add bundle analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
RudraPatel2003 committed Oct 22, 2024
1 parent 7d09e1e commit 30d719d
Show file tree
Hide file tree
Showing 3 changed files with 142 additions and 1 deletion.
8 changes: 7 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import withBundleAnalyzer from "@next/bundle-analyzer";

/** @type {import('next').NextConfig} */
const nextConfig = {};

export default nextConfig;
const bundleAnalyzerConfig = withBundleAnalyzer({
enabled: process.env.ANALYZE === "true",
})(nextConfig);

export default bundleAnalyzerConfig;
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"analyze-build": "ANALYZE=true next build",
"start": "next start",
"lint": "next lint --fix",
"check-lint": "next lint",
Expand All @@ -21,6 +22,7 @@
"@hookform/resolvers": "^3.9.0",
"@mui/material": "^6.1.2",
"@mui/material-nextjs": "^6.1.2",
"@next/bundle-analyzer": "^15.0.1",
"@react-email/components": "^0.0.25",
"bcrypt": "^5.1.1",
"dayjs": "^1.11.13",
Expand Down
133 changes: 133 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 30d719d

Please sign in to comment.