fix: API Endpoint in fetchOpcUaSettingsService für Development korrigiert

- falsches .js im API Pfad entfernt
- Development lädt jetzt korrekt /api/cpl/opcuaAPIHandler
- Production bleibt unverändert
This commit is contained in:
Ismail Ali
2025-04-15 10:35:52 +02:00
parent f709c2e3b7
commit de9c6a7333
18 changed files with 27 additions and 28 deletions

View File

@@ -1,12 +1,12 @@
// /services/fetchTDRChartDataByIdService.ts
export const fetchTDRChartDataById = async (
export const fetchTDRChartDataByIdService = async (
id: number
): Promise<any[] | null> => {
const isDev = process.env.NEXT_PUBLIC_NODE_ENV === "development";
const url = isDev
? `http://localhost:3000/apiMockData/TDR/${id}.json`
? `/api/cpl/TDR/${id}.json`
: `${window.location.origin}/CPL?Service/empty.acp&TDR=${id}`;
try {