Skip to content
Source
Sign inSign up
TanStack/router

fix(start-server-core): use public h3-v2 api event.res #6162

Mergedbirkskyum(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/6162/headmerged by birkskyum(GitHub profile, opens in a new tab)

Showing 2 changed files with 9 additions and 11 deletions.

x
0 of 2 viewed, 2 left
1 addition and 3 deletionspackages/start-server-core/src/request-response.tsModified
View file
@@ -337,11 +337,9 @@
return h3_clearSession(event, { name: 'start', ...config })
​
-// not public API
export function getResponse() {
const event = getH3Event()
- // @ts-expect-error accessing internal symbol
- return event[Symbol.for('h3.internal.event.res')]
+ return event.res
​
// not public API (yet)
8 additions and 8 deletionspackages/start-server-core/src/server-functions-handler.tsModified
View file
@@ -221,8 +221,8 @@
return new Response(
nonStreamingBody ? JSON.stringify(nonStreamingBody) : undefined,
- status: response?.status,
- statusText: response?.statusText,
+ status: response.status,