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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user