This commit is contained in:
2025-01-18 14:32:15 +01:00
parent 00d7fe1bf1
commit 6a0820772d
3 changed files with 1 additions and 40 deletions

View File

@@ -5,15 +5,12 @@
*/
import { PassThrough } from 'node:stream'
import './instrument.server.mjs'
import type { AppLoadContext, EntryContext } from '@remix-run/node'
import { createReadableStreamFromReadable } from '@remix-run/node'
import { RemixServer } from '@remix-run/react'
import { isbot } from 'isbot'
import { renderToPipeableStream } from 'react-dom/server'
import * as Sentry from '@sentry/remix'
const ABORT_DELAY = 5_000
export const handleError = Sentry.sentryHandleError
export default function handleRequest(
request: Request,
responseStatusCode: number,