Improve Vercel Postgres admin config check
This commit is contained in:
parent
81bc7e7590
commit
0a201f0dee
1
.vscode/settings.json
vendored
1
.vscode/settings.json
vendored
@ -46,6 +46,7 @@
|
|||||||
"upstash",
|
"upstash",
|
||||||
"UsKSGcbt",
|
"UsKSGcbt",
|
||||||
"Velvia",
|
"Velvia",
|
||||||
|
"verceldb",
|
||||||
"WRHGZC",
|
"WRHGZC",
|
||||||
"wxyz",
|
"wxyz",
|
||||||
"zadd",
|
"zadd",
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user