From 0693e3319aa0393ce8a52d8d00c618c780d87865 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Sun, 27 Aug 2023 00:48:50 -0700
Subject: ci(docker): dockerise

---
 src/routes/+layout.svelte | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/routes/+layout.svelte')

diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
index 2445967e..d4a62fb8 100644
--- a/src/routes/+layout.svelte
+++ b/src/routes/+layout.svelte
@@ -1,5 +1,5 @@
 <script>
-	import { PUBLIC_ANILIST_CLIENT_ID, PUBLIC_ANILIST_REDIRECT_URI } from '$env/static/public';
+	import { env } from '$env/dynamic/public';
 	import { userIdentity } from '$lib/AniList/identity';
 	import { onMount } from 'svelte';
 	import { lastActivityDate } from '$lib/AniList/activity';
@@ -25,7 +25,7 @@
 
 {#if data.user === undefined}
 	<a
-		href={`https://anilist.co/api/v2/oauth/authorize?client_id=${PUBLIC_ANILIST_CLIENT_ID}&redirect_uri=${PUBLIC_ANILIST_REDIRECT_URI}&response_type=code`}
+		href={`https://anilist.co/api/v2/oauth/authorize?client_id=${env.PUBLIC_ANILIST_CLIENT_ID}&redirect_uri=${env.PUBLIC_ANILIST_REDIRECT_URI}&response_type=code`}
 		>Log in with AniList</a
 	>
 {:else}
-- 
cgit v1.2.3

