update cloudflare context

This commit is contained in:
2025-12-17 23:52:08 -03:00
parent d683feb85f
commit be1ae656d3
25 changed files with 222 additions and 94 deletions

View File

@@ -1,10 +1,11 @@
import { requestIdContext } from '@/context'
import { type LoaderFunctionArgs } from 'react-router'
import { requestIdContext } from '../context'
export const loggingMiddleware = async (
{ request, context }: LoaderFunctionArgs,
next
) => {
next: () => Promise<Response>
): Promise<Response> => {
const requestId = crypto.randomUUID()
context.set(requestIdContext, requestId)