Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-06-30 20:38:33 +00:00
co-authored by renee-png
parent 2a6a6e4d94
commit b6233ade1b
8 changed files with 425 additions and 0 deletions
+2
View File
@@ -1,6 +1,7 @@
import { createStart, createMiddleware } from "@tanstack/react-start";
import { renderErrorPage } from "./lib/error-page";
import { attachSupabaseAuth } from "@/integrations/supabase/auth-attacher";
const errorMiddleware = createMiddleware().server(async ({ next }) => {
try {
@@ -18,5 +19,6 @@ const errorMiddleware = createMiddleware().server(async ({ next }) => {
});
export const startInstance = createStart(() => ({
functionMiddleware: [attachSupabaseAuth],
requestMiddleware: [errorMiddleware],
}));