Skip to content

[autoconfig] Remove the custom cf build override - #17314

Merged
petebacondarwin merged 2 commits into
mainfrom
codex/remove-autoconfig-cf-build
Dec 2, 2026
Merged

petebacondarwin merged 2 commits into
mainfrom
codex/remove-autoconfig-cf-build

Conversation

@petebacondarwin

@petebacondarwin petebacondarwin commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Remove the experimental cf:build script override and its detection metadata. OpenNext projects that want to use cf are 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.


Devin Review

@changeset-bot

changeset-bot Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d9a5fdd

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@cloudflare/autoconfig Minor

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

@github-project-automation github-project-automation Bot moved this to Untriaged in workers-sdk Dec 1, 2026
@workers-devprod
workers-devprod requested review from a team and jamesopstad and removed request for a team December 1, 2026 12:31
@workers-devprod

workers-devprod commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Codeowners approval required for this PR:

  • ✅ @cloudflare/wrangler
Show detailed file reviewers

devin-ai-integration[bot]

This comment was marked as resolved.

@clanky-the-clanker clanky-the-clanker Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@ask-bonk

ask-bonk Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

LGTM!

github run

@pkg-pr-new

pkg-pr-new Bot commented Dec 1, 2026

Copy link
Copy Markdown
@cloudflare/autoconfig

npm i https://pkg.pr.new/@cloudflare/autoconfig@17314

@cloudflare/build-output-utils

npm i https://pkg.pr.new/@cloudflare/build-output-utils@17314

@cloudflare/cli-shared-helpers

npm i https://pkg.pr.new/@cloudflare/cli-shared-helpers@17314

@cloudflare/codemods

npm i https://pkg.pr.new/@cloudflare/codemods@17314

@cloudflare/config

npm i https://pkg.pr.new/@cloudflare/config@17314

@cloudflare/containers-shared

npm i https://pkg.pr.new/@cloudflare/containers-shared@17314

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@17314

@cloudflare/deploy-helpers

npm i https://pkg.pr.new/@cloudflare/deploy-helpers@17314

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@17314

miniflare

npm i https://pkg.pr.new/miniflare@17314

@cloudflare/pages-functions

npm i https://pkg.pr.new/@cloudflare/pages-functions@17314

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@17314

@cloudflare/runtime-types

npm i https://pkg.pr.new/@cloudflare/runtime-types@17314

@cloudflare/test-server

npm i https://pkg.pr.new/@cloudflare/test-server@17314

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@17314

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@17314

@cloudflare/vitest-plugin

npm i https://pkg.pr.new/@cloudflare/vitest-plugin@17314

@cloudflare/workers-auth

npm i https://pkg.pr.new/@cloudflare/workers-auth@17314

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@17314

@cloudflare/workers-utils

npm i https://pkg.pr.new/@cloudflare/workers-utils@17314

wrangler

npm i https://pkg.pr.new/wrangler@17314

commit: 56da0fc

@clanky-the-clanker clanky-the-clanker Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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 jamesopstad left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR description needs fixing but otherwise looks good.

@workers-devprod workers-devprod left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codeowners reviews satisfied

@github-project-automation github-project-automation Bot moved this from Untriaged to Approved in workers-sdk Dec 1, 2026
@petebacondarwin petebacondarwin added the ci:skip-pr-description-validation Skip validation of the required PR description format label Dec 2, 2026
@petebacondarwin
petebacondarwin enabled auto-merge (squash) December 2, 2026 14:19
@petebacondarwin
petebacondarwin merged commit b5d6e21 into main Dec 2, 2026
96 of 97 checks passed
@petebacondarwin
petebacondarwin deleted the codex/remove-autoconfig-cf-build branch December 2, 2026 14:23
@github-project-automation github-project-automation Bot moved this from Approved to Done in workers-sdk Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:skip-pr-description-validation Skip validation of the required PR description format

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants