hopefully fix
All checks were successful
CI/CD Pipeline / Build and Push App Docker Image (push) Successful in 1m16s
CI/CD Pipeline / Build and Push PocketBase Docker Image (push) Successful in 6s
CI/CD Pipeline / Deploy to Kubernetes (push) Successful in 41s

This commit is contained in:
yohlo
2026-02-09 00:46:36 -06:00
parent 6370ebe48a
commit 84202cdbe9

View File

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