docs: [Zurück zur Übersicht](../README.md) in Alle in README für jeder Verzeichnis
This commit is contained in:
@@ -31,7 +31,10 @@ Die Konfiguration entscheidet anhand des Modus:
|
||||
```js
|
||||
const mode = process.env.NEXT_PUBLIC_API_PORT_MODE;
|
||||
|
||||
const serverURL = mode === "dev" ? `${window.location.protocol}//${window.location.hostname}:80` : `${window.location.origin}`;
|
||||
const serverURL =
|
||||
mode === "dev"
|
||||
? `${window.location.protocol}//${window.location.hostname}:80`
|
||||
: `${window.location.origin}`;
|
||||
```
|
||||
|
||||
→ Dadurch funktioniert der Code ohne Anpassung bei IP-/Server-Wechseln oder Portunterschieden.
|
||||
@@ -58,3 +61,7 @@ const serverURL = mode === "dev" ? `${window.location.protocol}//${window.locati
|
||||
---
|
||||
|
||||
📄 Pfad: `/docs/frontend/config/config.md`
|
||||
|
||||
---
|
||||
|
||||
[Zurück zur Übersicht](../README.md)
|
||||
|
||||
Reference in New Issue
Block a user