mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
fix-self-hosted-ports
This commit is contained in:
1 parent
0c60417968
commit
b310d94ba2
1 file changed
+1
-1
@@ -43,7 +43,7 @@ export function getApiEndpoint(region?: string): string {
|
||||
VARS.APPWRITE_ENDPOINT ? VARS.APPWRITE_ENDPOINT : globalThis?.location?.toString()
|
||||
);
|
||||
const protocol = url.protocol;
|
||||
const hostname = url.hostname;
|
||||
const hostname = url.host; // "hostname:port" (or just "hostname" if no port)
|
||||
|
||||
// If instance supports multi-region, add the region subdomain.
|
||||
const subdomain = isMultiRegionSupported(url) ? getSubdomain(region) : '';
|
||||
|
||||
Reference in new issue
Block a user