From 0ee20898ee66a8876bf0693e54c719ed57e012f5 Mon Sep 17 00:00:00 2001 From: Soham Sen Date: Fri, 29 Mar 2024 17:12:42 +0530 Subject: [PATCH] Fix issue with static env --- src/routes/+page.svelte | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 06b6897..2c17c9e 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -14,7 +14,6 @@ import { env } from '$env/dynamic/public'; import type { PageData } from './$types'; import { DHMToSeconds, secondsToDHM } from '$lib/utils/time'; - import { PUBLIC_ANONYMOUS_PASTES_ENABLED } from '$env/static/public'; export let data: PageData; @@ -204,7 +203,7 @@ class:hidden={content} bind:this={placeholderRef} > - {#if PUBLIC_ANONYMOUS_PASTES_ENABLED === 'false' && !data.loggedIn} + {#if env.PUBLIC_ANONYMOUS_PASTES_ENABLED === 'false' && !data.loggedIn} Anonymous pastes are disabled on this server.
You need to login to save pastes. {:else} @@ -222,7 +221,7 @@

YABin

- {#if PUBLIC_ANONYMOUS_PASTES_ENABLED === 'false' && !data.loggedIn} + {#if env.PUBLIC_ANONYMOUS_PASTES_ENABLED === 'false' && !data.loggedIn}