feat: Establish core application structure with user authentication, routing, and Supabase integration.

This commit is contained in:
2026-03-05 19:42:56 +01:00
parent 841f43285e
commit 289941b7d7
12 changed files with 3084 additions and 336 deletions

View File

@@ -0,0 +1,24 @@
import { createServerClient } from "@supabase/ssr"
import { getCookies, setCookie } from "@tanstack/react-start/server"
export function getSupabaseServerClient() {
return createServerClient(
process.env.VITE_SUPABASE_URL as string,
process.env.VITE_SUPABASE_KEY as string,
{
cookies: {
getAll() {
return Object.entries(getCookies()).map(([name, value]) => ({
name,
value,
}))
},
setAll(cookies) {
cookies.forEach((cookie) => {
setCookie(cookie.name, cookie.value)
})
},
},
}
)
}