fix: env dynamic not available on prerendering
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user