Add postgres-compatible reporting to admin config
This commit is contained in:
parent
0d88437034
commit
fd81df5749
@ -24,6 +24,8 @@ import { HiSparkles } from 'react-icons/hi';
|
||||
|
||||
export default function SiteChecklistClient({
|
||||
hasDatabase,
|
||||
isPostgresSSLEnabled,
|
||||
hasVercelPostgres,
|
||||
hasVercelKV,
|
||||
hasStorageProvider,
|
||||
hasVercelBlobStorage,
|
||||
@ -150,13 +152,25 @@ export default function SiteChecklistClient({
|
||||
status={hasDatabase}
|
||||
isPending={isPendingPage}
|
||||
>
|
||||
{renderLink(
|
||||
// eslint-disable-next-line max-len
|
||||
'https://vercel.com/docs/storage/vercel-postgres/quickstart#create-a-postgres-database',
|
||||
'Create Vercel Postgres store',
|
||||
)}
|
||||
{' '}
|
||||
and connect to project
|
||||
{renderSubStatus(
|
||||
hasVercelPostgres ? 'checked' : 'optional',
|
||||
<>
|
||||
Vercel Postgres:
|
||||
{' '}
|
||||
{renderLink(
|
||||
// eslint-disable-next-line max-len
|
||||
'https://vercel.com/docs/storage/vercel-postgres/quickstart#create-a-postgres-database',
|
||||
'create store',
|
||||
)}
|
||||
{' '}
|
||||
and connect to project
|
||||
</>)}
|
||||
{hasDatabase && !hasVercelPostgres &&
|
||||
renderSubStatus('checked', <>
|
||||
Postgres-compatible database
|
||||
{' '}
|
||||
(SSL {isPostgresSSLEnabled ? 'enabled' : 'disabled'})
|
||||
</>)}
|
||||
</ChecklistRow>
|
||||
<ChecklistRow
|
||||
title={!hasStorageProvider
|
||||
|
||||
@ -135,6 +135,8 @@ 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 ?? ''),
|
||||
hasVercelKV: HAS_VERCEL_KV,
|
||||
hasVercelBlobStorage: HAS_VERCEL_BLOB_STORAGE,
|
||||
hasCloudflareR2Storage: HAS_CLOUDFLARE_R2_STORAGE,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user