Skip to content

Commit bfcb207

Browse files
Merge pull request #2508 from appwrite/feat-tor-region
Feat tor region
2 parents 2bbc1ab + 4b2a5ce commit bfcb207

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/lib/constants.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ export const REGION_SYD = 'syd';
99
export const REGION_NYC = 'nyc';
1010
export const REGION_SFO = 'sfo';
1111
export const REGION_SGP = 'sgp';
12+
export const REGION_TOR = 'tor';
1213

1314
export const SUBDOMAIN_FRA = 'fra.';
1415
export const SUBDOMAIN_SYD = 'syd.';
1516
export const SUBDOMAIN_NYC = 'nyc.';
1617
export const SUBDOMAIN_SFO = 'sfo.';
1718
export const SUBDOMAIN_SGP = 'sgp.';
19+
export const SUBDOMAIN_TOR = 'tor.';
1820

1921
export enum Dependencies {
2022
FACTORS = 'dependency:factors',

src/lib/stores/sdk.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@ import {
3333
REGION_SYD,
3434
REGION_SFO,
3535
REGION_SGP,
36+
REGION_TOR,
3637
SUBDOMAIN_FRA,
3738
SUBDOMAIN_NYC,
3839
SUBDOMAIN_SFO,
3940
SUBDOMAIN_SYD,
40-
SUBDOMAIN_SGP
41+
SUBDOMAIN_SGP,
42+
SUBDOMAIN_TOR
4143
} from '$lib/constants';
4244
import { building } from '$app/environment';
4345
import { getProjectId } from '$lib/helpers/project';
@@ -68,6 +70,8 @@ const getSubdomain = (region?: string) => {
6870
return SUBDOMAIN_SFO;
6971
case REGION_SGP:
7072
return SUBDOMAIN_SGP;
73+
case REGION_TOR:
74+
return SUBDOMAIN_TOR;
7175
default:
7276
return '';
7377
}

0 commit comments

Comments
 (0)