Repository navigation
[autoconfig] Remove the custom cf build override - #17314
Conversation
🦋 Changeset detectedLatest commit: d9a5fdd The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Codeowners approval required for this PR:
Show detailed file reviewers |
There was a problem hiding this comment.
Superseded by the review of
d9a5fddb.
This review, of 56da0fc5
✅ Approved — A clean removal of the experimental cf:build override: no references remain, and the tests cover the new behaviour. No issues found.
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
🔒 Security: ✅ LGTM
The change removes a path that ran a script defined by the project. It adds no new input handling, entry points or trust boundaries. buildCommand is still built only from the package manager name and the fixed string build.
📋 Code Quality: ✅ LGTM
The override, its usesCustomCfBuild metadata and the "custom" route are removed together. The build command logic still matches the old fallthrough, and the tests cover OpenNext, regular Next.js and static-export projects that have a cf:build script.
📝 Documentation: ✅ LGTM
The changeset and the updated JSDoc on getCfNextBuild match the new behaviour.
Reviewed commit: 56da0fc5
|
LGTM! |
@cloudflare/autoconfig
@cloudflare/build-output-utils
@cloudflare/cli-shared-helpers
@cloudflare/codemods
@cloudflare/config
@cloudflare/containers-shared
create-cloudflare
@cloudflare/deploy-helpers
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-functions
@cloudflare/pages-shared
@cloudflare/runtime-types
@cloudflare/test-server
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-plugin
@cloudflare/workers-auth
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
commit: |
There was a problem hiding this comment.
✅ Approved — This is a clean removal of the experimental cf:build override. The new test asserts the default Next.js build command, and there are no findings.
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
🔒 Security: ✅ LGTM
This change removes a path that ran a script defined by the project. It adds no new input handling or entry points. buildCommand is still built only from the package manager name and the fixed string build.
📋 Code Quality: ✅ LGTM
The cf:build override, its "custom" route and the usesCustomCfBuild metadata are removed together, and no uses of them remain. The new assertions in the details test file match the code: buildCommand falls back to next build or the default, and the static-export fixture expects directory: "out".
📝 Documentation: ✅ LGTM
The changeset and the updated JSDoc match the new behaviour.
Reviewed commit: d9a5fddb
jamesopstad
left a comment
There was a problem hiding this comment.
PR description needs fixing but otherwise looks good.
workers-devprod
left a comment
There was a problem hiding this comment.
Codeowners reviews satisfied
Remove the experimental
cf:buildscript override and its detection metadata. OpenNext projects that want to usecfare directed to the vinext migration guide instead. Wrangler OpenNext support and the Next.js static export path are unchanged.Regression tests cover ignored overrides on OpenNext, regular Next.js and static export projects. Autoconfig type checking and all 1,013 package tests passed.
Companion to cloudflare/cf#833.