Adjust database installation check
This commit is contained in:
parent
be486ede20
commit
52eb85eeaf
@ -23,7 +23,7 @@ import { labelForStorage } from '@/services/storage';
|
|||||||
import { HiSparkles } from 'react-icons/hi';
|
import { HiSparkles } from 'react-icons/hi';
|
||||||
|
|
||||||
export default function SiteChecklistClient({
|
export default function SiteChecklistClient({
|
||||||
hasVercelPostgres,
|
hasDatabase,
|
||||||
hasVercelKV,
|
hasVercelKV,
|
||||||
hasStorageProvider,
|
hasStorageProvider,
|
||||||
hasVercelBlobStorage,
|
hasVercelBlobStorage,
|
||||||
@ -147,7 +147,7 @@ export default function SiteChecklistClient({
|
|||||||
>
|
>
|
||||||
<ChecklistRow
|
<ChecklistRow
|
||||||
title="Setup database"
|
title="Setup database"
|
||||||
status={hasVercelPostgres}
|
status={hasDatabase}
|
||||||
isPending={isPendingPage}
|
isPending={isPendingPage}
|
||||||
>
|
>
|
||||||
{renderLink(
|
{renderLink(
|
||||||
|
|||||||
@ -49,9 +49,9 @@ export const SITE_DESCRIPTION =
|
|||||||
process.env.NEXT_PUBLIC_SITE_DESCRIPTION ||
|
process.env.NEXT_PUBLIC_SITE_DESCRIPTION ||
|
||||||
SITE_DOMAIN;
|
SITE_DOMAIN;
|
||||||
|
|
||||||
// STORAGE: VERCEL POSTGRES
|
// STORAGE: DATABASE
|
||||||
export const HAS_VERCEL_POSTGRES =
|
export const HAS_DATABASE =
|
||||||
(process.env.POSTGRES_HOST ?? '').length > 0;
|
(process.env.POSTGRES_URL ?? '').length > 0;
|
||||||
|
|
||||||
// STORAGE: VERCEL KV
|
// STORAGE: VERCEL KV
|
||||||
export const HAS_VERCEL_KV =
|
export const HAS_VERCEL_KV =
|
||||||
@ -132,7 +132,7 @@ export const ADMIN_DEBUG_TOOLS_ENABLED = process.env.ADMIN_DEBUG_TOOLS === '1';
|
|||||||
export const HIGH_DENSITY_GRID = GRID_ASPECT_RATIO <= 1;
|
export const HIGH_DENSITY_GRID = GRID_ASPECT_RATIO <= 1;
|
||||||
|
|
||||||
export const CONFIG_CHECKLIST_STATUS = {
|
export const CONFIG_CHECKLIST_STATUS = {
|
||||||
hasVercelPostgres: HAS_VERCEL_POSTGRES,
|
hasDatabase: HAS_DATABASE,
|
||||||
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,
|
||||||
@ -174,7 +174,7 @@ export const CONFIG_CHECKLIST_STATUS = {
|
|||||||
export type ConfigChecklistStatus = typeof CONFIG_CHECKLIST_STATUS;
|
export type ConfigChecklistStatus = typeof CONFIG_CHECKLIST_STATUS;
|
||||||
|
|
||||||
export const IS_SITE_READY =
|
export const IS_SITE_READY =
|
||||||
CONFIG_CHECKLIST_STATUS.hasVercelPostgres &&
|
CONFIG_CHECKLIST_STATUS.hasDatabase &&
|
||||||
CONFIG_CHECKLIST_STATUS.hasStorageProvider &&
|
CONFIG_CHECKLIST_STATUS.hasStorageProvider &&
|
||||||
CONFIG_CHECKLIST_STATUS.hasAuthSecret &&
|
CONFIG_CHECKLIST_STATUS.hasAuthSecret &&
|
||||||
CONFIG_CHECKLIST_STATUS.hasAdminUser;
|
CONFIG_CHECKLIST_STATUS.hasAdminUser;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user