Skip to content

Commit 1813d4f

Browse files
committed
Add changesets for the SSR request-pipeline URL-parsing perf change
1 parent 559c288 commit 1813d4f

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@astrojs/node': patch
3+
'@astrojs/cloudflare': patch
4+
'@astrojs/netlify': patch
5+
'@astrojs/vercel': patch
6+
---
7+
8+
Reduces per-request URL parsing in the SSR path by parsing `request.url` once and sharing it across `app.match()` and `app.render()` (previously parsed two to three times per request). This is an internal performance change with no behavior difference.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'astro': patch
3+
---
4+
5+
Reduces per-request URL parsing and allocations in the SSR request pipeline, collapsing up to three `request.url` parses per request down to one across the core render and match paths. This is an internal performance change with no behavior difference.
6+
7+
Note: `createRequestFromNodeRequest` (exported from `astro/app/node`) now returns `{ request, url }` instead of a bare `Request`. Astro's internal call sites are updated; external importers must destructure `.request`.

0 commit comments

Comments
 (0)