fix: env dynamic not available on prerendering

This commit is contained in:
Rotimi Best
2024-10-20 02:26:03 +01:00
parent c16d036cc3
commit c9271a11ce
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -5,8 +5,8 @@
import StudentDashboard from '$lib/Home/StudentDashboard.svelte';
import MoreFeatures from '$lib/Home/MoreFeatures.svelte';
import Testimonial from '$lib/Home/Testimonial.svelte';
import { PUBLIC_ENABLE_FAQ } from '$env/static/public';
import { env } from '$env/dynamic/public';
import { onMount } from 'svelte';
onMount(() => {
@@ -20,6 +20,6 @@
<Testimonial />
<MoreFeatures />
{#if env.PUBLIC_ENABLE_FAQ}
{#if PUBLIC_ENABLE_FAQ}
<Faq />
{/if}