major ui tweaks and refactoring

This commit is contained in:
Milo Schwartz 2025-01-04 20:22:01 -05:00
parent 51bf5c1408
commit 64158a823b
No known key found for this signature in database
91 changed files with 1791 additions and 1246 deletions

View file

@ -1,8 +1,11 @@
import { cookies } from "next/headers";
import { pullEnv } from "../pullEnv";
export async function authCookieHeader() {
const env = pullEnv();
const allCookies = await cookies();
const cookieName = process.env.SESSION_COOKIE_NAME!;
const cookieName = env.server.sessionCookieName;
const sessionId = allCookies.get(cookieName)?.value ?? null;
return {
headers: {