Refactor middleware import path, update Docker configurations, and normalize API base URL

This commit is contained in:
AlexeerCT
2025-12-26 14:21:00 -06:00
parent 3409d0a163
commit 69bf0c472b
5 changed files with 38 additions and 20 deletions

View File

@@ -4,7 +4,8 @@
import { getToken } from './auth';
import { browser } from '$app/environment';
const API_BASE_URL = import.meta.env.VITE_API_URL;
// Normalize API_BASE_URL to remove trailing slash
const API_BASE_URL = (import.meta.env.VITE_API_URL || '').replace(/\/+$/, '');
export interface ApiResponse<T = any> {
data?: T;