docs+refactor: Proxy [...path].js auf dynamische Ziel-URL umgestellt (v1.1.77)
- entfernt: NEXT_PUBLIC_SERVER_URL aus .env.local - verwendet jetzt API_PORT_MODE zur Zielermittlung (dev = :80) - neue technische Dokumentation unter /docs/server/pages/api/apiProxy.md - CHANGELOG.md und appVersion.js aktualisiert (1.1.77)
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
// /config/appVersion
|
||||
export const APP_VERSION = "1.1.77";
|
||||
export const APP_VERSION = "1.1.78";
|
||||
|
||||
@@ -12,7 +12,7 @@ const mode = process.env.NEXT_PUBLIC_API_PORT_MODE;
|
||||
const serverURL = mode === "dev" ? `${window.location.protocol}//${window.location.hostname}:80` : `${window.location.origin}`;
|
||||
|
||||
if (!serverURL && !isMockMode()) {
|
||||
throw new Error("Die Umgebungsvariable NEXT_PUBLIC_SERVER_URL ist nicht gesetzt!");
|
||||
throw new Error("Die Umgebungsvariable ist nicht gesetzt!");
|
||||
}
|
||||
console.log("%c 1- serverURL in config:", "color: #006400;", serverURL);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user