mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-26 10:45:38 +02:00
remove public_ssr_api_url
This commit is contained in:
@@ -2,7 +2,7 @@ import {env} from '$env/dynamic/public';
|
||||
import type {LayoutLoad} 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: LayoutLoad = async ({fetch}) => {
|
||||
try {
|
||||
const requests = await fetch(`${apiUrl}/tv/seasons/requests`, {
|
||||
|
||||
Reference in New Issue
Block a user