kill maintenance
This commit is contained in:
parent
dd31b5bafc
commit
65b9e4086f
|
|
@ -3,9 +3,9 @@ import { getUserFromSession } from "$lib/database";
|
||||||
|
|
||||||
/** @type {import('@sveltejs/kit').Handle} */
|
/** @type {import('@sveltejs/kit').Handle} */
|
||||||
export async function handle({ event, resolve }) {
|
export async function handle({ event, resolve }) {
|
||||||
if (event.url.pathname !== "/maintenance" && process.env.MAINTENANCE) {
|
//if (event.url.pathname !== "/maintenance" && process.env.MAINTENANCE) {
|
||||||
return new Response("", { status: 302, headers: { Location: "/maintenance" } });
|
// return new Response("", { status: 302, headers: { Location: "/maintenance" } });
|
||||||
}
|
//}
|
||||||
|
|
||||||
const cookie = event.cookies.get(COOKIE_NAME);
|
const cookie = event.cookies.get(COOKIE_NAME);
|
||||||
if (!cookie) {
|
if (!cookie) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue