Spaces:
Sleeping
Sleeping
Jon Taylor
commited on
Commit
·
8106674
1
Parent(s):
b3de037
utils logic swap
Browse files- frontend/app/utils.js +1 -1
frontend/app/utils.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
export const apiUrl =
|
2 |
-
typeof window
|
3 |
? process.env.NEXT_PUBLIC_API_URL
|
4 |
: process.env.NEXT_PUBLIC_API_URL ||
|
5 |
`${window.location.protocol === "https:" ? "https" : "http"}://${
|
|
|
1 |
export const apiUrl =
|
2 |
+
typeof window === "undefined"
|
3 |
? process.env.NEXT_PUBLIC_API_URL
|
4 |
: process.env.NEXT_PUBLIC_API_URL ||
|
5 |
`${window.location.protocol === "https:" ? "https" : "http"}://${
|