Move app to apps/web-react in pnpm workspace layout

This commit is contained in:
Kalle
2026-08-16 09:20:33 +03:00
parent 7e365ccfcf
commit bbc8ea57af
2913 changed files with 227 additions and 250 deletions

View File

@@ -0,0 +1,16 @@
import { runWithRequestContext } from "./request-context.server";
type MiddlewareArgs = {
request: Request;
url: URL;
context: unknown;
};
type MiddlewareFn = (
args: MiddlewareArgs,
next: () => Promise<Response>,
) => Promise<Response>;
// TODO: this is only needed for our current hacky toast setup, once a proper one in place this middleware can be deleted
export const requestContextMiddleware: MiddlewareFn = ({ url }, next) =>
runWithRequestContext({ url }, () => next());