Actually fix env vars this time
This commit is contained in:
parent
d17acceec8
commit
578a21b669
|
|
@ -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" } });
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue