fix: update fetchDigitalOutputsService.ts to use /api/cpl/digitalOutputsAPIHandler in development
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// ✅ Service: /services/fetchDigitalOutputsService.ts
|
||||
// /services/fetchDigitalOutputsService.ts
|
||||
|
||||
export const fetchDigitalOutputsService = async () => {
|
||||
if (typeof window === "undefined") return [];
|
||||
@@ -6,7 +6,7 @@ export const fetchDigitalOutputsService = async () => {
|
||||
const scriptSrc =
|
||||
process.env.NEXT_PUBLIC_NODE_ENV === "production"
|
||||
? "/CPL?/CPL/SERVICE/da.js"
|
||||
: "/api/cpl/digitaleAusgaengeAPIHandler";
|
||||
: "/api/cpl/digitalOutputsAPIHandler";
|
||||
|
||||
await new Promise<void>((resolve, reject) => {
|
||||
const script = document.createElement("script");
|
||||
|
||||
Reference in New Issue
Block a user