hopefully fix
This commit is contained in:
@@ -529,7 +529,8 @@ 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 {
|
||||||
return await handler.fetch(req)
|
const response = await handler.fetch(req)
|
||||||
|
return response as Response
|
||||||
} 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 })
|
||||||
|
|||||||
Reference in New Issue
Block a user