Skip to content

Conversation

@florian-lefebvre
Copy link
Member

@florian-lefebvre florian-lefebvre commented Oct 17, 2025

Changes

Testing

Manual

Docs

Changeset, withastro/docs#12603

@florian-lefebvre florian-lefebvre self-assigned this Oct 17, 2025
@florian-lefebvre florian-lefebvre marked this pull request as ready for review October 17, 2025 15:34
@changeset-bot
Copy link

changeset-bot bot commented Oct 17, 2025

🦋 Changeset detected

Latest commit: 895153f

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

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-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Oct 17, 2025
@OliverSpeir
Copy link
Contributor

So this makes it so astro add cloudflare assumes Cloudflare works projects instead of Cloudflare pages projects and workers projects also need the public/.assetsignore workaround mentioned here https://docs.astro.build/en/guides/integrations-guide/cloudflare/#routing-on-cloudflare-workers

Can we add this too?

@codspeed-hq
Copy link

codspeed-hq bot commented Oct 17, 2025

CodSpeed Performance Report

Merging #14564 will not alter performance

Comparing feat/cloudflare-add-wrangler (895153f) with main (7b45c65)

Summary

✅ 6 untouched

@ematipico
Copy link
Member

Shouldn't this be a minor?

@florian-lefebvre
Copy link
Member Author

I don't think it needs to be a minor but we could talk about it in 5.15 either way. No strong opinion on this!

@florian-lefebvre florian-lefebvre added this to the v5.15.0 milestone Oct 20, 2025
Copy link
Member

@sarah11918 sarah11918 left a comment

Choose a reason for hiding this comment

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

Approving for docs, FWIW!

@ematipico
Copy link
Member

I don't think it needs to be a minor but we could talk about it in 5.15 either way. No strong opinion on this!

The title of the PR is definitely misleading then

@sarah11918
Copy link
Member

@florian-lefebvre If this changes the behaviour of astro add cloudflare, are there any changes needed to the docs page for the cloudflare integration? Have you checked to see that we don't e.g. say "create these files..." that are now created?

@florian-lefebvre
Copy link
Member Author

2 things:

  1. Maybe we should update the "manual install" section?
  2. The .assetsignore file is covered in https://docs.astro.build/en/guides/integrations-guide/cloudflare/#routing-on-cloudflare-workers (I think it's fine there), wrangler.jsonc is mentionned in a few places

@OliverSpeir
Copy link
Contributor

Regarding docs I think now we have https://docs.astro.build/en/guides/deploy/cloudflare/#cloudflare-workers and https://docs.astro.build/en/guides/deploy/cloudflare/#cloudflare-pages which will sort of need to be inverted

and https://docs.astro.build/en/guides/integrations-guide/cloudflare/#preview-with-wrangler can change to wrangler dev whereas now it is actually not the correct command it should be wrangler dev --assets=./dist but we don't need to specify the ./dist if users have a wrangler.jsonc

https://docs.astro.build/en/guides/integrations-guide/cloudflare/#sessions has mention to wrangler.json but should be wrangler.jsonc if we create this for users, as well as all mentions of wrangler.json on https://docs.astro.build/en/guides/integrations-guide/cloudflare/

@sarah11918
Copy link
Member

@OliverSpeir @florian-lefebvre Are one of you able to make a docs PR with the suggested/necessary changes? I am not really familiar with Cloudflare, but can certainly grok proposed changes in a PR!

@florian-lefebvre
Copy link
Member Author

florian-lefebvre commented Oct 22, 2025

I am not very familiar with it either unfortunately, so @OliverSpeir if you don't mind I think it'd be better if you took this! At least as a first step.

EDIT: I'll open a PR to at least have something to get started

@sarah11918
Copy link
Member

Will note, maybe we can nerd snipe @Adammatthiesen here, too! Calling in all Cloudflare reinforcements!

@florian-lefebvre
Copy link
Member Author

See withastro/docs#12603

@matthewp matthewp merged commit 5e7cebb into main Oct 22, 2025
22 checks passed
@matthewp matthewp deleted the feat/cloudflare-add-wrangler branch October 22, 2025 13:39
@astrobot-houston astrobot-houston mentioned this pull request Oct 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: astro Related to the core `astro` package (scope)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants