mirror of
https://github.com/pupperpowell/bibdle.git
synced 2026-02-04 10:54:44 -05:00
Moved to bibdle.com
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user