add columns

This commit is contained in:
2025-11-19 00:46:57 -03:00
parent 786c5e1580
commit a180e269f2
6 changed files with 94 additions and 64 deletions

View File

@@ -1,7 +1,7 @@
import { isbot } from 'isbot'
import { renderToReadableStream } from 'react-dom/server'
import type { AppLoadContext, EntryContext } from 'react-router'
import { ServerRouter } from 'react-router'
import { ServerRouter, type HandleErrorFunction } from 'react-router'
export default async function handleRequest(
request: Request,
@@ -44,3 +44,10 @@ export default async function handleRequest(
// https://reactrouter.com/how-to/suspense#timeouts
export const streamTimeout = 7_000
// https://reactrouter.com/how-to/error-reporting
export const handleError: HandleErrorFunction = (error, { request }) => {
if (!request.signal.aborted) {
console.error(error)
}
}