Skip to content

Commit 02b1b53

Browse files
committed
fix: importing env variable causes build error
Signed-off-by: Robert Goniszewski <[email protected]>
1 parent facb491 commit 02b1b53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/routes/+page.svelte

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
55
import { applyAction, enhance } from '$app/forms';
66
import { page } from '$app/stores';
7+
import * as env from '$env/static/public';
78
import Pagination from '$lib/components/Pagination/Pagination.svelte';
89
import { user } from '$lib/pb';
910
import { searchEngine, searchedValue } from '$lib/stores/search.store';
@@ -21,7 +22,6 @@
2122
import _ from 'lodash';
2223
import Select from 'svelte-select';
2324
import { writable } from 'svelte/store';
24-
import { PUBLIC_SIGNUP_DISABLED } from '$env/static/public';
2525
2626
const sortByOptions = [
2727
{ label: 'added (desc)', value: 'created_desc' },
@@ -186,7 +186,7 @@
186186
<h1 class="text-2xl">Initialization Wizard 🧙</h1>
187187
<div class="max-w-2xl flex flex-col text-center my-4 gap-2">
188188
<p class="text-lg">Looks like you're about to start using Grimoire for the first time!</p>
189-
{#if PUBLIC_SIGNUP_DISABLED === 'true'}
189+
{#if env?.PUBLIC_SIGNUP_DISABLED === 'true'}
190190
<p class="text-lg">
191191
Please enable public signup in your <code>.env</code> file and
192192
<strong><a href="/signup" class="link">create your first User</a></strong> to start using Grimoire.

0 commit comments

Comments
 (0)