fix: fetchSingleTDMDataService API-Endpoint in Development korrigiert
- Query Parameter ?slot=X statt /slotX - Dev-Umgebung lädt jetzt korrekt über /api/cpl/tdmDataAPIHandler?slot=X - Prod bleibt unverändert mit TDM=X Parameter
This commit is contained in:
@@ -6,7 +6,7 @@ export const fetchSingleTDMDataService = async (slot: number): Promise<any> => {
|
||||
const isDev = process.env.NEXT_PUBLIC_NODE_ENV === "development";
|
||||
|
||||
const url = isDev
|
||||
? `/apiMockData/TDM/slot${slot}.json`
|
||||
? `/api/cpl/tdmDataAPIHandler?slot=${slot}`
|
||||
: `${window.location.origin}/CPL?Service/empty.acp&TDM=${slot}`;
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user