Improve Vercel Postgres admin config check

This commit is contained in:
Sam Becker 2024-05-03 10:53:22 -05:00
parent 81bc7e7590
commit 0a201f0dee
2 changed files with 5 additions and 2 deletions

View File

@ -46,6 +46,7 @@
"upstash",
"UsKSGcbt",
"Velvia",
"verceldb",
"WRHGZC",
"wxyz",
"zadd",

View File

@ -135,8 +135,10 @@ export const HIGH_DENSITY_GRID = GRID_ASPECT_RATIO <= 1;
export const CONFIG_CHECKLIST_STATUS = {
hasDatabase: HAS_DATABASE,
isPostgresSSLEnabled: POSTGRES_SSL_ENABLED,
hasVercelPostgres: /\.vercel-storage\.com\//
.test(process.env.POSTGRES_URL ?? ''),
hasVercelPostgres: (
/\/verceldb\?/.test(process.env.POSTGRES_URL ?? '') ||
/\.vercel-storage\.com\//.test(process.env.POSTGRES_URL ?? '')
),
hasVercelKV: HAS_VERCEL_KV,
hasVercelBlobStorage: HAS_VERCEL_BLOB_STORAGE,
hasCloudflareR2Storage: HAS_CLOUDFLARE_R2_STORAGE,