Skip to content

fix(cloudflare-worker): accept wrangler.toml alongside wrangler.jsonc - #3

Merged
ruehowl merged 1 commit into
mainfrom
fix/cloudflare-worker-wrangler-toml-support
May 1, 2026
Merged

ruehowl merged 1 commit into
mainfrom
fix/cloudflare-worker-wrangler-toml-support

Conversation

@varahul

@varahul varahul commented May 1, 2026

Copy link
Copy Markdown
Contributor

Summary

The verify-worker-structure step in the cloudflare-worker composition currently requires wrangler.jsonc to be present. This blocks projects that use the older (but still fully supported) wrangler.toml format — including orun-backend, which uses wrangler.toml as specified.

Change

- test -f wrangler.jsonc
+ test -f wrangler.jsonc || test -f wrangler.toml

Accept either wrangler.jsonc or wrangler.toml. This is a non-breaking change: all repos currently using wrangler.jsonc continue to work without any modification.

Why

  • Wrangler supports both formats. The TOML format (wrangler.toml) is the original and is still commonly used.
  • JSONC (wrangler.jsonc) is the newer preferred format, but not universally adopted.
  • Requiring JSONC exclusively creates friction for existing projects migrating to the cloudflare-worker composition.

Verification

  • Existing cloudflare-worker smoke tests pass unchanged (they use wrangler.jsonc)
  • A project with only wrangler.toml now passes the structure check

Related

Raised during orun-backend DevOps setup: sourceplane/orun-backend#1

The verify-worker-structure step previously required wrangler.jsonc
exclusively. Some workers — including orun-backend — use wrangler.toml
(the original TOML format). Accept either file so the composition works
with both config formats.

The check now runs:
  test -f wrangler.jsonc || test -f wrangler.toml

This is a non-breaking change: repos already using wrangler.jsonc
continue to work exactly as before.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@ruehowl
ruehowl merged commit 450deb5 into main May 1, 2026
14 checks 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.

2 participants