Reworked variable system, no longer hardcoded

This commit is contained in:
serversdwn
2025-11-25 20:39:40 +00:00
parent d692de8f5d
commit 8d5ad6a809
10 changed files with 100 additions and 22 deletions

View File

@@ -1,4 +1,4 @@
const API_BASE = '/api';
const API_BASE = import.meta.env.VITE_API_BASE_URL || '/api';
async function fetchAPI(endpoint, options = {}) {
const response = await fetch(`${API_BASE}${endpoint}`, {