Skip to content

Commit 5a4f07b

Browse files
committed
Force webpack for next.js build to ensure compatibility with Next 16
1 parent b16527d commit 5a4f07b

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/analyze.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,11 @@ jobs:
4242
key: ${{ runner.os }}-build-${{ env.cache-name }}
4343

4444
- name: Build next.js app
45-
# change this if your site requires a custom build command
46-
run: ./node_modules/.bin/next build
45+
# This project pins the webpack pipeline (see next.config.js): the custom
46+
# webpack config and Sandpack's raw-loader imports aren't Turbopack-ready,
47+
# and Next 16's `next build` defaults to Turbopack. Match the `build`/`analyze`
48+
# npm scripts by forcing `--webpack`.
49+
run: ./node_modules/.bin/next build --webpack
4750

4851
# Here's the first place where next-bundle-analysis' own script is used
4952
# This step pulls the raw bundle stats for the current bundle

0 commit comments

Comments
 (0)