OhMyDitzzy
commited on
Commit
·
676413d
1
Parent(s):
229c8e2
fix: domain
Browse files- src/lib/api-url.ts +1 -1
src/lib/api-url.ts
CHANGED
|
@@ -8,7 +8,7 @@ export function getBaseUrl(): string {
|
|
| 8 |
}
|
| 9 |
|
| 10 |
return process.env.NODE_ENV === 'production'
|
| 11 |
-
? process.env.DOMAIN_URL
|
| 12 |
: 'http://localhost:5000';
|
| 13 |
}
|
| 14 |
|
|
|
|
| 8 |
}
|
| 9 |
|
| 10 |
return process.env.NODE_ENV === 'production'
|
| 11 |
+
? process.env.DOMAIN_URL || `${window.location.protocol}//${window.location.host}`
|
| 12 |
: 'http://localhost:5000';
|
| 13 |
}
|
| 14 |
|