1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-17 01:06:46 +01:00

Fix incorrect way to access the environment variable in Svelte

This commit is contained in:
Alex Tran 2023-01-19 10:51:39 -06:00
parent 43e9529ce4
commit 753d81adad
No known key found for this signature in database
GPG key ID: E4954BC787B85C8A

View file

@ -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({