mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Merge pull request #1681 from appwrite/change-endpoint
Fix: endpoint as per region
This commit is contained in:
@@ -12,8 +12,9 @@
|
||||
import { project } from '../store';
|
||||
import { canWriteProjects } from '$lib/stores/roles';
|
||||
|
||||
const endpoint = sdk.forConsole.client.config.endpoint;
|
||||
const projectId = $page.params.project;
|
||||
const { project: projectId, region } = $page.params;
|
||||
const { protocol, hostname, href } = new URL(sdk.forConsole.client.config.endpoint);
|
||||
const endpoint = region ? `${protocol}//${region}-${hostname}/v1` : href;
|
||||
|
||||
let name: string = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user