backend env url

This commit is contained in:
Lars Behrends
2026-04-10 14:32:54 +02:00
parent 04156486e2
commit 07c3270e12
6 changed files with 28 additions and 17 deletions

View File

@@ -1,6 +1,6 @@
import { Media, Staff, UserSettings, MediaCategory } from './types';
const BASE_URL = 'http://192.168.1.102:6400';
const BASE_URL = import.meta.env.VITE_API_URL;
function normalizeUrl(url: string | null): string {
if (!url) return '';