Remove bundle analyzer (incompatible with Turbopack)

- Removed @next/bundle-analyzer package
- Removed build:analyze script
- Cleaned up next.config.mjs

The Next Bundle Analyzer is not compatible with Turbopack builds yet.
Since this project uses Turbopack, the analyzer cannot be used.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-20 22:35:46 +08:00
parent d6edcf1757
commit d42cb46af8
3 changed files with 1 additions and 202 deletions

View File

@@ -7,7 +7,6 @@
"dev": "concurrently \"contentlayer2 dev\" \"next dev --turbo\"",
"sync-assets": "node scripts/sync-assets.mjs",
"build": "npm run sync-assets && contentlayer2 build && next build && npx pagefind --site .next && rm -rf public/_pagefind && cp -r .next/pagefind public/_pagefind",
"build:analyze": "npm run sync-assets && contentlayer2 build && ANALYZE=true next build --webpack",
"start": "next start",
"lint": "next lint",
"contentlayer": "contentlayer build"
@@ -39,7 +38,6 @@
"unist-util-visit": "^5.0.0"
},
"devDependencies": {
"@next/bundle-analyzer": "^16.0.3",
"@tailwindcss/typography": "^0.5.19",
"@types/node": "^24.10.1",
"@types/react": "^19.2.5",