Fix API base URL to be relative for correct proxy routing
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { Phase1Data, Phase2Data, Phase3Data, Phase4Data, Phase6Data, Phase7Data, Phase8Data, Phase9Data, Language } from "./types";
|
||||
|
||||
const API_BASE_URL = '/api'; // Using relative path to proxy through Vite/NGINX
|
||||
const API_BASE_URL = './api'; // Relative path to respect Nginx /gtm/ routing
|
||||
|
||||
const callApi = async <T>(endpoint: string, mode: string, payload: object): Promise<T> => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user