Skip to content

[wrangler] Add top-level addresses config field for Email Routing - #14470

Merged
jamesopstad merged 3 commits into
cloudflare:mainfrom
DiogoSantoss:dsantos/EMAIL-1880
Jul 15, 2026
Merged

[wrangler] Add top-level addresses config field for Email Routing#14470
jamesopstad merged 3 commits into
cloudflare:mainfrom
DiogoSantoss:dsantos/EMAIL-1880

Conversation

@DiogoSantoss

@DiogoSantoss DiogoSantoss commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Adds a top-level addresses field to Wrangler configuration for Email Routing.

You can declare the inbound email addresses handled by a Worker directly in wrangler.json:

{
	"name": "my-worker",
	"main": "src/index.ts",
	"compatibility_date": "2026-05-21",
	"addresses": ["support@example.com", "*@example.com"]
}

Each entry is a literal recipient address or a *@domain catch-all. addresses is top-level only (it applies to every environment and cannot be set under env.*) and is validated locally (array of non-empty strings, no exact duplicates). wrangler deploy --dry-run validates the field and prints the resolved set without any network calls. Applying the addresses during wrangler deploy follows in a stacked PR.

Internal tracking: EMAIL-1880 / RM-29262.


  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
    • Additional testing not necessary because:
  • Public documentation

🐱

@changeset-bot

changeset-bot Bot commented Jun 29, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 0ac6690

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

This PR includes changesets to release 3 packages
Name Type
wrangler Minor
@cloudflare/vite-plugin Patch
@cloudflare/vitest-pool-workers Patch

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

@DiogoSantoss
DiogoSantoss force-pushed the dsantos/EMAIL-1880 branch 3 times, most recently from f016d6d to a7e1830 Compare June 30, 2026 10:36
@DiogoSantoss
DiogoSantoss marked this pull request as ready for review June 30, 2026 10:54
@workers-devprod
workers-devprod requested review from a team and NuroDev and removed request for a team June 30, 2026 10:54
@workers-devprod

workers-devprod commented Jun 30, 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.

Comment thread .changeset/email-routing-addresses.md Outdated
Comment thread packages/workers-utils/src/config/config.ts
@github-project-automation github-project-automation Bot moved this from Untriaged to In Review in workers-sdk Jul 2, 2026
@github-project-automation github-project-automation Bot moved this to Untriaged in workers-sdk Jul 2, 2026
@pkg-pr-new

pkg-pr-new Bot commented Jul 2, 2026

Copy link
Copy Markdown
@cloudflare/autoconfig

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

@cloudflare/config

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

create-cloudflare

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

@cloudflare/deploy-helpers

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

@cloudflare/kv-asset-handler

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

miniflare

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

@cloudflare/pages-shared

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

@cloudflare/unenv-preset

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

@cloudflare/vite-plugin

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

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@14470

@cloudflare/workers-auth

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

@cloudflare/workers-editor-shared

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

@cloudflare/workers-utils

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

wrangler

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

commit: 0ac6690

@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 In Review to Approved in workers-sdk Jul 3, 2026
@workers-devprod

Copy link
Copy Markdown
Contributor

Codeowners approval required for this PR:

  • ✅ @cloudflare/wrangler
Show detailed file reviewers

Diogo Santos added 2 commits July 15, 2026 09:46
EMAIL-1880: parse and validate the new top-level `addresses` field in
wrangler config (literal recipients or `*@domain` catch-alls). It is
top-level only (cannot be set under `env.*`), validated locally (array
of non-empty strings, no exact duplicates), and printed on
`wrangler deploy --dry-run` without any network calls. Applying the
addresses during deploy follows in EMAIL-1882.
@jamesopstad
jamesopstad merged commit 3de70df into cloudflare:main Jul 15, 2026
55 checks passed
@github-project-automation github-project-automation Bot moved this from Approved to Done in workers-sdk Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants