feat: add toronto region

This commit is contained in:
Christy Jacob
2025-10-26 13:42:41 +05:30
parent bc51522660
commit 4b2a5cea81
2 changed files with 7 additions and 1 deletions
+2
View File
@@ -9,12 +9,14 @@ export const REGION_SYD = 'syd';
export const REGION_NYC = 'nyc';
export const REGION_SFO = 'sfo';
export const REGION_SGP = 'sgp';
export const REGION_TOR = 'tor';
export const SUBDOMAIN_FRA = 'fra.';
export const SUBDOMAIN_SYD = 'syd.';
export const SUBDOMAIN_NYC = 'nyc.';
export const SUBDOMAIN_SFO = 'sfo.';
export const SUBDOMAIN_SGP = 'sgp.';
export const SUBDOMAIN_TOR = 'tor.';
export enum Dependencies {
FACTORS = 'dependency:factors',
+5 -1
View File
@@ -33,11 +33,13 @@ import {
REGION_SYD,
REGION_SFO,
REGION_SGP,
REGION_TOR,
SUBDOMAIN_FRA,
SUBDOMAIN_NYC,
SUBDOMAIN_SFO,
SUBDOMAIN_SYD,
SUBDOMAIN_SGP
SUBDOMAIN_SGP,
SUBDOMAIN_TOR
} from '$lib/constants';
import { building } from '$app/environment';
import { getProjectId } from '$lib/helpers/project';
@@ -68,6 +70,8 @@ const getSubdomain = (region?: string) => {
return SUBDOMAIN_SFO;
case REGION_SGP:
return SUBDOMAIN_SGP;
case REGION_TOR:
return SUBDOMAIN_TOR;
default:
return '';
}