chore(env): .env.local entfernt und durch .env.development ersetzt
- Umgebungsvariablen klar getrennt: .env.development für dev, .env.production für Build - Verhindert versehentliche Verwendung von .env.local bei next build - Build-Umgebung verwendet jetzt korrekt .env.production
This commit is contained in:
@@ -12,7 +12,7 @@ NEXT_PUBLIC_DEBUG_LOG=false
|
||||
|
||||
|
||||
#auf dem Entwicklungsrechner dev läuft auf Port 3000 und auf dem Server prod auf Port 80, aber der WebService ist immer auf PORT 80
|
||||
NEXT_PUBLIC_API_PORT_MODE=prod
|
||||
NEXT_PUBLIC_API_PORT_MODE=dev
|
||||
NEXT_PUBLIC_USE_MOCKS=true
|
||||
|
||||
# Der Unterordner talas5 gleich hinter der IP-Adresse (oder Servername) muss konfigurierbar sein.
|
||||
@@ -1,2 +1,2 @@
|
||||
// /config/appVersion
|
||||
export const APP_VERSION = "1.1.239";
|
||||
export const APP_VERSION = "1.1.240";
|
||||
|
||||
@@ -7,10 +7,10 @@ export const monitorHeapAndReload = (limitInGB = 8, intervalMs = 10000) => {
|
||||
return setInterval(() => {
|
||||
const heap = performance.memory?.usedJSHeapSize || 0;
|
||||
|
||||
console.log("Heap:", (heap / 1024 / 1024).toFixed(2), "MB");
|
||||
//console.log("Heap:", (heap / 1024 / 1024).toFixed(2), "MB");
|
||||
|
||||
if (heap > limit) {
|
||||
//console.warn("🚨 Heap-Limit erreicht. Reload wird ausgeführt.");
|
||||
console.warn("🚨 Heap-Limit erreicht. Reload wird ausgeführt.");
|
||||
location.reload();
|
||||
}
|
||||
store.dispatch(updateHeap(heap));
|
||||
|
||||
Reference in New Issue
Block a user