v2.1: stylistic updates & countdown timer

This commit is contained in:
George Powell
2025-12-21 18:24:38 -05:00
parent 0d50ff5f27
commit 5999221b8f
14 changed files with 274 additions and 22 deletions

View File

@@ -1,12 +1,7 @@
import type { Handle } from '@sveltejs/kit';
import * as auth from '$lib/server/auth';
import { redirect } from '@sveltejs/kit';
const handleAuth: Handle = async ({ event, resolve }) => {
if (event.url.hostname === 'bibdle.orthodox.cafe') {
throw redirect(301, `https://bibdle.com${event.url.pathname}${event.url.search}${event.url.hash}`);
}
const sessionToken = event.cookies.get(auth.sessionCookieName);
if (!sessionToken) {