hopefully fix
This commit is contained in:
@@ -527,9 +527,9 @@ async function initializeServer() {
|
|||||||
...routes,
|
...routes,
|
||||||
|
|
||||||
// Fallback to TanStack Start handler for all other routes
|
// Fallback to TanStack Start handler for all other routes
|
||||||
'/*': (req: Request) => {
|
'/*': async (req: Request) => {
|
||||||
try {
|
try {
|
||||||
return handler.fetch(req)
|
return await handler.fetch(req)
|
||||||
} 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