new prod env #3

Merged
kyle merged 13 commits from development into main 2026-02-09 12:59:10 -06:00
Showing only changes of commit 84202cdbe9 - Show all commits

View File

@@ -529,8 +529,14 @@ async function initializeServer() {
// Fallback to TanStack Start handler for all other routes // Fallback to TanStack Start handler for all other routes
'/*': async (req: Request) => { '/*': async (req: Request) => {
try { try {
const response = await handler.fetch(req) const h3Response = await handler.fetch(req)
return response as Response
const body = await h3Response.arrayBuffer()
return new Response(body, {
status: h3Response.status,
statusText: h3Response.statusText,
headers: h3Response.headers,
})
} catch (error) { } catch (error) {
log.error(`Server handler error: ${String(error)}`) log.error(`Server handler error: ${String(error)}`)
return new Response('Internal Server Error', { status: 500 }) return new Response('Internal Server Error', { status: 500 })