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", "upstash",
"UsKSGcbt", "UsKSGcbt",
"Velvia", "Velvia",
"verceldb",
"WRHGZC", "WRHGZC",
"wxyz", "wxyz",
"zadd", "zadd",

View File

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