- API-URL passt sich automatisch an die Umgebung an: - In Development (`npm run dev`) wird `http://localhost:3001/kabelueberwachung` genutzt. - In Production (`npm run build && npm start`) wird `window.location.origin/CPL` verwendet. - Verbesserte Fehlerbehandlung für JSON-Antworten implementiert. - **Hinweis:** Für die lokale Entwicklung wird `json-server` benötigt. Installation: `npm install -g json-server` Starten: `json-server --watch mockData.json --port 3001`
5 lines
119 B
Plaintext
5 lines
119 B
Plaintext
NEXT_PUBLIC_NODE_ENV=production
|
|
NEXT_PUBLIC_ENCRYPTION_KEY=1
|
|
NEXT_PUBLIC_ENCRYPTION_IV=1
|
|
NEXT_PUBLIC_CPL_API_PATH=/CPL
|