We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 426d864 commit 664e7c8Copy full SHA for 664e7c8
frontend/src/const/API.ts
@@ -1,9 +1,9 @@
1
const HOST =
2
- process.env.REACT_APP_SERVER_HOST ?? window.location.hostname ?? "localhost"
3
-const PORT = process.env.REACT_APP_SERVER_PORT ?? window.location.port ?? 8000
+ process.env.REACT_APP_SERVER_HOST || window.location.hostname || "localhost"
+const PORT = process.env.REACT_APP_SERVER_PORT || window.location.port || 8000
4
const PROTO =
5
- process.env.REACT_APP_SERVER_PROTO ??
6
- window.location.protocol.replace(":", "") ??
+ process.env.REACT_APP_SERVER_PROTO ||
+ window.location.protocol.replace(":", "") ||
7
"http"
8
9
export const BASE_URL =
0 commit comments