Skip to content

Update wrangler config template in astro add#15047

Merged
matthewp merged 4 commits intonextfrom
astro-add-cloudflare-update
Dec 18, 2025
Merged

Update wrangler config template in astro add#15047
matthewp merged 4 commits intonextfrom
astro-add-cloudflare-update

Conversation

@matthewp
Copy link
Contributor

Changes

  • Fixes the main entrypoint to the new one.
  • Hardcodes the compatibility_date to the one we have in the cloudflare integration.
  • Removes compatibility_flags which is no longer needed.

Testing

Test manually.

Docs

N/A

Updates the generated wrangler.jsonc template to use correct main entrypoint, hardcoded compatibility_date, and removes unnecessary compatibility_flags.
@changeset-bot
Copy link

changeset-bot bot commented Dec 17, 2025

🦋 Changeset detected

Latest commit: 7672a7e

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 Dec 17, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Dec 17, 2025

⚠️ Package Trust Level Decreased

Caution

Decreased trust levels may indicate a higher risk of supply chain attacks. Please review these changes carefully.

📦 Package 🔒 Before 🔓 After
@cloudflare/unenv-preset trusted-with-provenance none
workerd trusted-with-provenance none
undici provenance none
miniflare trusted-with-provenance none
youch provenance none
@cloudflare/workerd-darwin-64 trusted-with-provenance none
@cloudflare/workerd-darwin-arm64 trusted-with-provenance none
@cloudflare/workerd-linux-64 trusted-with-provenance none
@cloudflare/workerd-linux-arm64 trusted-with-provenance none
@cloudflare/workerd-windows-64 trusted-with-provenance none
wrangler trusted-with-provenance none

@matthewp matthewp marked this pull request as ready for review December 17, 2025 20:24
CLOUDFLARE_WRANGLER_CONFIG: (name: string) => `\
{
"main": "dist/_worker.js/index.js",
"compatibility_date": "2025-05-21",

Choose a reason for hiding this comment

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

We could export a util from @cloudflare/vite-plugin to get the latest compatibility_date supported by the installed version. You could then use that to provide the value here. Would that be helpful?

In the meantime, it would be good to use a more recent compatibility date.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah yeah that probably does make sense.

Copy link
Member

Choose a reason for hiding this comment

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

That would be great :)

@github-actions github-actions bot added the pkg: integration Related to any renderer integration (scope) label Dec 18, 2025
@matthewp matthewp merged commit 5580372 into next Dec 18, 2025
22 checks passed
@matthewp matthewp deleted the astro-add-cloudflare-update branch December 18, 2025 18:37
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) pkg: integration Related to any renderer integration (scope)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants