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/fetchSystemSettingsService.ts
|
||||
export const fetchSystemSettings = async () => {
|
||||
export const fetchSystemSettingsService = async () => {
|
||||
try {
|
||||
if (typeof window === "undefined") return null;
|
||||
|
||||
const isDev = process.env.NODE_ENV === "development";
|
||||
const scriptSrc =
|
||||
process.env.NEXT_PUBLIC_NODE_ENV === "development"
|
||||
? "/apiMockData/SERVICE/system.js"
|
||||
? "/api/cpl/systemAPIHandler"
|
||||
: "/CPL?/CPL/SERVICE/system.js";
|
||||
|
||||
await new Promise<void>((resolve, reject) => {
|
||||
|
||||
Reference in New Issue
Block a user