remove public_ssr_api_url

This commit is contained in:
maxDorninger
2025-06-08 23:10:37 +02:00
parent ec2493afdb
commit 40a19edc56
26 changed files with 146 additions and 161 deletions

View File

@@ -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', {