mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-21 05:15:13 +02:00
remove public_ssr_api_url
This commit is contained in:
@@ -2,7 +2,7 @@ import {env} from '$env/dynamic/public';
|
||||
import type {PageLoad} from './$types';
|
||||
import {browser} from "$app/environment";
|
||||
|
||||
const apiUrl = browser ? env.PUBLIC_API_URL : env.PUBLIC_SSR_API_URL;
|
||||
const apiUrl = env.PUBLIC_API_URL;
|
||||
export const load: PageLoad = async ({fetch}) => {
|
||||
try {
|
||||
const users = await fetch(apiUrl + '/users/all', {
|
||||
|
||||
Reference in New Issue
Block a user