Skip to content

Commit f0a1a69

Browse files
authored
Turbopack: bundle-analyzer need to avoid using the local next.js build (#86258)
### What? Next build breaks when the API doesn't match.
1 parent db80365 commit f0a1a69

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

apps/bundle-analyzer/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
"version": "16.0.2-canary.16",
44
"private": true,
55
"scripts": {
6-
"build": "next build --no-mangling",
7-
"dev": "next dev",
6+
"build": "cross-env NEXT_TEST_NATIVE_DIR=no next build --no-mangling",
7+
"dev": "cross-env NEXT_TEST_NATIVE_DIR=no next dev",
88
"lint": "eslint .",
9-
"start": "next start"
9+
"start": "cross-env NEXT_TEST_NATIVE_DIR=no next start"
1010
},
1111
"dependencies": {
1212
"@radix-ui/react-dialog": "1.1.4",
@@ -32,6 +32,7 @@
3232
"@types/node": "^22",
3333
"@types/react": "^18",
3434
"@types/react-dom": "^18",
35+
"cross-env": "10.1.0",
3536
"inliner": "1.13.1",
3637
"postcss": "^8.5",
3738
"tailwindcss": "^4.1.9",

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)