Actually fix env vars this time

This commit is contained in:
I-Have-An-Issue 2022-10-07 23:45:37 -04:00
parent d17acceec8
commit 578a21b669
No known key found for this signature in database
GPG Key ID: E55435DEA0825091
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
/** @type {import('@sveltejs/kit').Handle} */
export async function handle({ event, resolve }) {
if (event.url.pathname !== "/maintenance" && process.env.MAINTENANCE == "true" && process.env.PRODUCTION == "true") {
if (event.url.pathname !== "/maintenance" && process.env.MAINTENANCE) {
return new Response("", { status: 302, headers: { Location: "/maintenance" } });
}