From 0355e6485c6e43f66a04165a85a890aaf1d8c0c3 Mon Sep 17 00:00:00 2001 From: Ayush Sehrawat <69469790+AyushSehrawat@users.noreply.github.com> Date: Sun, 14 Jul 2024 15:56:54 +0530 Subject: [PATCH] fix: switch to dynamic private env (#523) * fix: switch to dynamic private env * fix: switch to dynamic private env --- frontend/src/routes/settings/general/+page.server.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/routes/settings/general/+page.server.ts b/frontend/src/routes/settings/general/+page.server.ts index 2606f0a6..7ad6a314 100644 --- a/frontend/src/routes/settings/general/+page.server.ts +++ b/frontend/src/routes/settings/general/+page.server.ts @@ -9,7 +9,8 @@ import { generalSettingsToSet } from '$lib/forms/helpers'; import { setSettings, saveSettings, loadSettings } from '$lib/forms/helpers.server'; -import { BACKEND_URL } from '$env/static/private'; +import { env } from '$env/dynamic/private'; +const BACKEND_URL = env.BACKEND_URL || 'http://127.0.0.1:8080'; export const load: PageServerLoad = async ({ fetch }) => { async function getPartialSettings() {