mirror of
https://github.com/supabase/supabase.git
synced 2026-10-17 15:19:08 +03:00
125 lines
3.5 KiB
TypeScript
125 lines
3.5 KiB
TypeScript
// Alias regions remain as the starting point for project creation
|
|
// they are immediately translated to their respective cloud regions
|
|
// and are afterward never referred to
|
|
export const REGIONS = {
|
|
WEST_US: 'West US (North California)',
|
|
EAST_US: 'East US (North Virginia)',
|
|
CENTRAL_CANADA: 'Canada (Central)',
|
|
WEST_EU: 'West EU (Ireland)',
|
|
WEST_EU_2: 'West EU (London)',
|
|
// 'North EU': 'North EU',
|
|
CENTRAL_EU: 'Central EU (Frankfurt)',
|
|
SOUTH_ASIA: 'South Asia (Mumbai)',
|
|
SOUTHEAST_ASIA: 'Southeast Asia (Singapore)',
|
|
NORTHEAST_ASIA: 'Northeast Asia (Tokyo)',
|
|
NORTHEAST_ASIA_2: 'Northeast Asia (Seoul)',
|
|
OCEANIA: 'Oceania (Sydney)',
|
|
SOUTH_AMERICA: 'South America (São Paulo)',
|
|
// SOUTH_AFRICA: 'South Africa (Cape Town)',
|
|
}
|
|
|
|
export const REGIONS_DEFAULT = REGIONS.EAST_US
|
|
|
|
export const PROVIDERS = {
|
|
AWS: {
|
|
id: 'AWS',
|
|
name: 'aws',
|
|
DEFAULT_SSH_KEY: 'supabase-app-instance',
|
|
regions: {
|
|
EAST_US: 'us-east-1', // North Virginia
|
|
// 'North EU': 'eu-north-1', // Stockholm
|
|
WEST_US: 'us-west-1', // North California
|
|
SOUTHEAST_ASIA: 'ap-southeast-1', // Singapore
|
|
NORTHEAST_ASIA: 'ap-northeast-1', // Tokyo
|
|
NORTHEAST_ASIA_2: 'ap-northeast-2', //Seoul
|
|
OCEANIA: 'ap-southeast-2', // Sydney
|
|
WEST_EU: 'eu-west-1', // Ireland
|
|
WEST_EU_2: 'eu-west-2', // London
|
|
CENTRAL_EU: 'eu-central-1', // Frankfurt
|
|
CENTRAL_CANADA: 'ca-central-1', // Central Canada
|
|
SOUTH_ASIA: 'ap-south-1', // Mumbai
|
|
SOUTH_AMERICA: 'sa-east-1', // Sao Paulo
|
|
// SOUTH_AFRICA: 'af-south-1', // Cape Town
|
|
},
|
|
sizes: {
|
|
nano: {
|
|
x86_64: 't3.nano',
|
|
arm64: 't4g.nano',
|
|
description: '512mb RAM',
|
|
},
|
|
micro: {
|
|
x86_64: 't3.micro',
|
|
arm64: 't4g.micro',
|
|
description: '1gb RAM',
|
|
},
|
|
medium: {
|
|
x86_64: 'm5a.large',
|
|
arm64: 'm6g.medium',
|
|
description: '4gb RAM',
|
|
},
|
|
},
|
|
},
|
|
}
|
|
|
|
// @todo ini update for prod
|
|
export const AWS_SUPPORTED_AZ = {
|
|
EAST_US: ['us-east-1a', 'us-east-1b', 'us-east-1c', 'us-east-1d', 'us-east-1e', 'us-east-1f'],
|
|
SOUTHEAST_ASIA: ['ap-southeast-1a', 'ap-southeast-1b', 'ap-southeast-1c'],
|
|
WEST_EU: ['eu-west-1a', 'eu-west-1b', 'eu-west-1c'],
|
|
}
|
|
|
|
export const SERVICE_STATUS = {
|
|
INACTIVE: 'INACTIVE',
|
|
ACTIVE_HEALTHY: 'ACTIVE_HEALTHY',
|
|
ACTIVE_UNHEALTHY: 'ACTIVE_UNHEALTHY',
|
|
COMING_UP: 'COMING_UP',
|
|
UNKNOWN: 'UNKNOWN',
|
|
GOING_DOWN: 'GOING_DOWN',
|
|
INIT_FAILED: 'INIT_FAILED',
|
|
REMOVED: 'REMOVED',
|
|
}
|
|
|
|
export const PROJECT_STATUS = {
|
|
INACTIVE: 'INACTIVE',
|
|
ACTIVE_HEALTHY: 'ACTIVE_HEALTHY',
|
|
ACTIVE_UNHEALTHY: 'ACTIVE_UNHEALTHY',
|
|
COMING_UP: 'COMING_UP',
|
|
UNKNOWN: 'UNKNOWN',
|
|
GOING_DOWN: 'GOING_DOWN',
|
|
INIT_FAILED: 'INIT_FAILED',
|
|
REMOVED: 'REMOVED',
|
|
RESTORING: 'RESTORING',
|
|
}
|
|
|
|
export const STRIPE_PRODUCT_IDS = {
|
|
PAYG: process?.env?.NEXT_PUBLIC_STRIPE_PAYG_TIER_ID,
|
|
PRO: process?.env?.NEXT_PUBLIC_STRIPE_PRO_TIER_ID,
|
|
FREE: process?.env?.NEXT_PUBLIC_STRIPE_FREE_TIER_ID,
|
|
}
|
|
|
|
export const DEFAULT_MINIMUM_PASSWORD_STRENGTH = 4
|
|
|
|
export const PASSWORD_STRENGTH = {
|
|
0: 'This password is not acceptable.',
|
|
1: 'This password is not secure enough.',
|
|
2: 'This password is not secure enough.',
|
|
3: 'Not bad, but your password must be harder to guess.',
|
|
4: 'This password is strong.',
|
|
}
|
|
|
|
export const PASSWORD_STRENGTH_COLOR = {
|
|
0: 'bg-red-500',
|
|
1: 'bg-red-400',
|
|
2: 'bg-yellow-500',
|
|
3: 'bg-yellow-500',
|
|
4: 'bg-green-500',
|
|
}
|
|
|
|
export const PASSWORD_STRENGTH_PERCENTAGE = {
|
|
0: '10%',
|
|
1: '30%',
|
|
2: '50%',
|
|
3: '80%',
|
|
4: '100%',
|
|
}
|