chore(deps): upgrade to Astro 7 and @astrojs/cloudflare 14 - #101
Merged
Merged
Conversation
Fixes the open Astro security alerts (including the critical image optimization RCE, fixed in 7.2.8) and the esbuild, sharp and lodash alerts that came in through Astro 5. - wrangler main points at @astrojs/cloudflare/entrypoints/server - Astro.locals.runtime is gone, so the OG and thumbnail caches use locals.cfContext.waitUntil - compressHTML stays true so the HTML output doesn't change - session: false, so no SESSION KV namespace is added or provisioned
This was referenced Oct 1, 2026
anurag629
added a commit
that referenced
this pull request
Oct 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the open Astro security alerts, including the critical image optimization RCE (fixed in 7.2.8), plus the esbuild, sharp and lodash alerts that came in through Astro 5. Replaces #99, which didn't build.
wrangler.jsoncmainnow points at@astrojs/cloudflare/entrypoints/server. The build writesdist/server/wrangler.jsonandwrangler deploypicks it up, with the same routes, observability and assets settings.Astro.locals.runtimeis gone in the new adapter, so the OG image and thumbnail caches uselocals.cfContext.waitUntil. With the old line, cache writes would have silently stopped.compressHTML: truekeeps the HTML output the same (Astro 7 defaults to JSX whitespace rules)session: false, since we don't use Astro sessions. Without it the adapter adds aSESSIONKV binding and deploys would create a KV namespace.Checked on Node 22:
npm run check0 errors and 0 warnings, 179 tests pass, build completes. Ran the built Worker withwrangler devand compared 14 routes with production: same status codes and content types, and/api/og, thumbnails and/api/templatesare byte-for-byte the same size. The editor hydrates with no console errors, and the 404 page looks the same as production.