Skip to content

Update CONTRIBUTING.md for Cloudflare Workers deployment#14055

Merged
matthewp merged 4 commits into
mainfrom
cloudflare-contrib-docs
Jun 12, 2026
Merged

Update CONTRIBUTING.md for Cloudflare Workers deployment#14055
matthewp merged 4 commits into
mainfrom
cloudflare-contrib-docs

Conversation

@matthewp

Copy link
Copy Markdown
Contributor

Updates the contributor manual to reflect the migration from Netlify to Cloudflare Workers:

  • Replace Netlify references with Cloudflare Workers for deploy previews
  • Add a Creating a Version Branch section documenting the steps needed when a new major version of Astro is released and the current main becomes a version branch

The version branch process is now:

  1. Change the Worker name in wrangler.jsonc and the site URL in astro.config.ts
  2. Add the branch to deploy.yml on main
  3. Add the custom domain in the Cloudflare dashboard

- Replace Netlify references with Cloudflare Workers
- Add 'Creating a Version Branch' section documenting the process
  for setting up versioned docs branches on new major releases
@netlify

netlify Bot commented Jun 12, 2026

Copy link
Copy Markdown

Deploy Preview for astro-docs-2 failed. Why did it fail? →

Name Link
🔨 Latest commit 11fb8c6
🔍 Latest deploy log https://app.netlify.com/projects/astro-docs-2/deploys/6a2c7132f117b40008f2705c

@github-actions

github-actions Bot commented Jun 12, 2026

Copy link
Copy Markdown

Preview deployment

✅ Deployment complete!

The wrangler-action defaults to wrangler 3.x which doesn't support
wrangler.jsonc or the --preview-alias flag.

@ArmandPhilippot ArmandPhilippot left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Sounds good to me. I left a nit regarding the Cloudflare Dashboard as access is limited.

Not related to this PR, but you might want to give a look at the v7 PR to resolve conflicts #13872
For example I see:

<<<<<<< v7
    "wrangler": "^4.99.0"
=======
    "wrangler": "^4.88.0"
>>>>>>> main

It seems weird since both changes are recent. I don't know if there is a good reason for those two version to be so different.

Comment thread CONTRIBUTING.md
Comment on lines +225 to +227
### 3. In the Cloudflare dashboard

- After the first successful deploy, go to the Worker's settings (e.g. `docs-v7`) -> **Domains & Routes** and add the custom domain (e.g. `v7.docs.astro.build`).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: Unless this is useful for you (or anyone having access to Cloudflare), I'm not sure we need this? I mean we didn't have that for Netlify and people with access knew how to do it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Just thought it would be better to document somewhere rather than it be tribal knowledge that you have to ask about on Discord (mostly just didn't want to be the only one who knew how). But if you think it doesn't belong here, happy to remove.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I just wasn't sure if it was intentional because unlike that of withastro/astro, this one mostly contains things for every contributor (ie. not maintainer specific guidance). So, no issue here, I don't mind keeping that here!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah this is not like a secret or anything, but just documentation for those with access. Would rather keep it, thanks!

matthewp added 2 commits June 12, 2026 16:36
The v3 action defaults to wrangler 3.x which doesn't support
wrangler.jsonc or --preview-alias. The v4 action defaults to
wrangler 4 natively.
@matthewp matthewp merged commit 041fd41 into main Jun 12, 2026
9 of 13 checks passed
@matthewp matthewp deleted the cloudflare-contrib-docs branch June 12, 2026 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants