mirror of
				https://github.com/KevinMidboe/immich.git
				synced 2025-10-29 17:40:28 +00:00 
			
		
		
		
	Fix incorrect way to access the environment variable in Svelte
This commit is contained in:
		@@ -1,7 +1,6 @@
 | 
				
			|||||||
import { env } from '$env/dynamic/public';
 | 
					 | 
				
			||||||
import { json } from '@sveltejs/kit';
 | 
					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 () => {
 | 
					export const GET = async () => {
 | 
				
			||||||
	return json({
 | 
						return json({
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user