Skip to content

Conversation

florian-lefebvre
Copy link
Member

Changes

Testing

Manual

Docs

Changeset

@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
Copy link

changeset-bot bot commented Oct 17, 2025

🦋 Changeset detected

Latest commit: c27129e

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?

Copy link

codspeed-hq bot commented Oct 17, 2025

CodSpeed Performance Report

Merging #14564 will not alter performance

Comparing feat/cloudflare-add-wrangler (c27129e) with main (d5bdbc0)

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/

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.

5 participants