feat(nextjs): add experimental-build-mode option to support compile only#26465
feat(nextjs): add experimental-build-mode option to support compile only#26465ndcunningham merged 4 commits intonrwl:masterfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 97ef37e. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 6 targets
Sent with 💌 from NxCloud. |
|
Thanks for opening this PR. This has been high on my wishlist for quite some time |
<!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> ## Current Behavior <!-- This is the behavior we have today --> ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #
!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> ## Current Behavior - wrapper echo's its contents - wrapper doesn't exit properly - wrapper has LF line endings ## Expected Behavior - wrapper is silent - wrapper exits early - wrapper has CRLF endings ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes nrwl#26254
6eeca05 to
484d1a5
Compare
| "experimentalBuildMode": { | ||
| "type": "string", | ||
| "description": "Change the build mode.", | ||
| "enum": ["compile", "generate"] |
There was a problem hiding this comment.
There is some confusion w.r.t. to the default option. The documentation shows it as available, if you pass it the CLI will complain though.
|
@ndcunningham could you have a quick look? This is a super small and non-intrusive change making lives for users of nextjs in a 12-factor setting much easier... thanks a lot! |
…nly (#26465) ## Current Behavior The nextjs build executor does not support all build flags such as `--experimental-build-mode` (see https://nextjs.org/docs/app/api-reference/next-cli#build). ## Expected Behavior For certain deployment models (e.g. mult-environment builds), it is helpful to only compile but not generate pages at build time. See vercel/next.js#46544 for a discussion. --------- Co-authored-by: Emily Xiong <xiongemi@gmail.com> Co-authored-by: Craigory Coppola <craigorycoppola@gmail.com>
|
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Current Behavior
The nextjs build executor does not support all build flags such as
--experimental-build-mode(see https://nextjs.org/docs/app/api-reference/next-cli#build).Expected Behavior
For certain deployment models (e.g. mult-environment builds), it is helpful to only compile but not generate pages at build time. See vercel/next.js#46544 for a discussion.