Stop categorizing database as Vercel

This commit is contained in:
Sam Becker 2025-09-21 09:48:04 -05:00
parent 272d57bec5
commit 1a592aca26
2 changed files with 10 additions and 17 deletions

View File

@ -39,7 +39,6 @@ export default function AdminAppConfigurationClient({
// Storage
hasDatabase,
isPostgresSslEnabled,
hasVercelPostgres,
hasRedisStorage,
hasStorageProvider,
hasVercelBlobStorage,
@ -249,27 +248,25 @@ export default function AdminAppConfigurationClient({
{databaseError && renderError({
connection: { provider: 'Database', error: databaseError},
})}
{hasVercelPostgres
? renderSubStatus('checked', 'Vercel Postgres: connected')
: renderSubStatus('optional', <>
Vercel Postgres:
{hasDatabase
? renderSubStatus(
'checked',
// eslint-disable-next-line max-len
`Postgres: connected${!isPostgresSslEnabled ? ' (SSL disabled)' : ''}`,
)
: renderSubStatus('missing', <>
Postgres:
{' '}
<AdminLink
// eslint-disable-next-line max-len
href="https://vercel.com/docs/storage/vercel-postgres/quickstart#create-a-postgres-database"
href="https://vercel.com/docs/postgres#create-a-postgres-database"
externalIcon
>
create store
create database
</AdminLink>
{' '}
and connect to project
</>)}
{hasDatabase && !hasVercelPostgres &&
renderSubStatus('checked', <>
Postgres-compatible: connected
{' '}
(SSL {isPostgresSslEnabled ? 'enabled' : 'disabled'})
</>)}
</ChecklistRow>
<ChecklistRow
title={

View File

@ -382,10 +382,6 @@ export const APP_CONFIGURATION = {
// Storage
hasDatabase: HAS_DATABASE,
isPostgresSslEnabled: POSTGRES_SSL_ENABLED,
hasVercelPostgres: (
/\/verceldb\?/.test(process.env.POSTGRES_URL ?? '') ||
/\.vercel-storage\.com\//.test(process.env.POSTGRES_URL ?? '')
),
hasRedisStorage: HAS_REDIS_STORAGE,
hasVercelBlobStorage: HAS_VERCEL_BLOB_STORAGE,
hasCloudflareR2Storage: HAS_CLOUDFLARE_R2_STORAGE,