Skip to content

fix(deploy): remove redundant custom port flag - #18

Merged
margrop merged 1 commit into
mainfrom
agent/remove-redundant-custom-port-flag
Jul 26, 2026
Merged

margrop merged 1 commit into
mainfrom
agent/remove-redundant-custom-port-flag

Conversation

@margrop

@margrop margrop commented Jul 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • remove the redundant allow_custom_ports compatibility flag from the Worker configuration
  • retain custom-port support through the existing 2026-07-24 compatibility date

Root cause

Preview deployment run #1 reached the real wrangler deploy step but Cloudflare rejected the script with error 10021: allow_custom_ports became the default on 2024-09-02 and must no longer be specified explicitly.

Verification

  • ASTRO_TELEMETRY_DISABLED=1 npm run validate
    • 24 test files and 275 tests passed
    • formatting, lint, type checks, build, and static privacy checks passed
  • XDG_CONFIG_HOME=/tmp/margrop-labs-ci-fix-wrangler npm run deploy:check:preview --workspace @margrop-labs/web
    • Preview Wrangler dry-run passed without the compatibility-flag error

Impact

  • no browser, API, model, Secret, rate-limit, privacy, or budget behavior changes
  • no Production deployment
  • Preview Secrets do not need to be re-entered

@margrop
margrop marked this pull request as ready for review July 26, 2026 13:50
@margrop
margrop merged commit 1aea3c1 into main Jul 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant