fix: CGI-API-Aufruf in Produktionsumgebung per fetch statt location.href

- CGI-Endpunkte der CPL-Hardware werden jetzt per fetch im Hintergrund aufgerufen
- Kein Tab-Wechsel oder Seitenreload mehr bei "Speichern"
- Entwicklung nutzt weiterhin Next.js API-Routen
- Nutzer erhält einheitliches Feedback per alert
This commit is contained in:
ISA
2025-04-22 13:33:58 +02:00
parent 44ae17f6e8
commit c35826e1a0
6 changed files with 46 additions and 14 deletions

View File

@@ -5,13 +5,12 @@
"scripts": {
"dev": "next dev",
"clean": "rimraf .next out",
"build": "npm run clean && cross-env EXPORT_STATIC=true next build && next export",
"build": "npm run clean && cross-env EXPORT_STATIC=true next build",
"postbuild": "copy LICENSE_ICONIFY.txt out\\LICENSE_ICONIFY.txt",
"start": "next start",
"lint": "next lint",
"test": "jest",
"prepare": "husky install",
"export": "cross-env EXPORT_STATIC=true next build && next export"
"prepare": "husky install"
},
"dependencies": {
"@fontsource/roboto": "^5.1.0",