Refactor middleware import path, update Docker configurations, and normalize API base URL
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user