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,6 +1,6 @@
|
||||
// ✅ Service: /services/fetchDigitaleEingaengeService.ts
|
||||
|
||||
export const fetchDigitaleEingaenge = async () => {
|
||||
export const fetchDigitaleEingaengeService = async () => {
|
||||
try {
|
||||
if (typeof window === "undefined") return null;
|
||||
|
||||
@@ -8,7 +8,7 @@ export const fetchDigitaleEingaenge = async () => {
|
||||
const scriptSrc =
|
||||
process.env.NEXT_PUBLIC_NODE_ENV === "production"
|
||||
? "/CPL?/CPL/SERVICE/de.js"
|
||||
: "/apiMockData/SERVICE/de.js";
|
||||
: "/api/cpl/digitaleEingaengeAPIHandler";
|
||||
|
||||
await new Promise<void>((resolve, reject) => {
|
||||
const script = document.createElement("script");
|
||||
|
||||
Reference in New Issue
Block a user