Skip to content

High performance self-hosted photo and video management solution.

Fix incorrect way to access the environment variable in Svelte

Alex Tran753d81adadac
diff --git a/web/src/routes/.well-known/immich/+server.ts b/web/src/routes/.well-known/immich/+server.ts
index 7b9b0068ad..8ae494123b 100644
--- a/web/src/routes/.well-known/immich/+server.ts
+++ b/web/src/routes/.well-known/immich/+server.ts
@@ -1,7 +1,6 @@
-import { env } from '$env/dynamic/public';
import { json } from '@sveltejs/kit';
-const endpoint = env.PUBLIC_IMMICH_API_URL_EXTERNAL || '/api';
+const endpoint = process.env.IMMICH_API_URL_EXTERNAL || '/api';
export const GET = async () => {
return json({