Merge branch 'master' into sitetest

This commit is contained in:
I-Have-An-Issue 2022-10-13 21:10:44 -04:00
commit 6274ade362
No known key found for this signature in database
GPG Key ID: E55435DEA0825091
1 changed files with 3 additions and 3 deletions

View File

@ -3,9 +3,9 @@ import { getUserFromSession } from "$lib/database";
/** @type {import('@sveltejs/kit').Handle} */
export async function handle({ event, resolve }) {
if (event.url.pathname !== "/maintenance" && process.env.MAINTENANCE) {
return new Response("", { status: 302, headers: { Location: "/maintenance" } });
}
//if (event.url.pathname !== "/maintenance" && process.env.MAINTENANCE) {
// return new Response("", { status: 302, headers: { Location: "/maintenance" } });
//}
const cookie = event.cookies.get(COOKIE_NAME);
if (!cookie) {