Refine default about description

This commit is contained in:
Sam Becker 2026-03-01 23:19:26 -06:00
parent 8569347c27
commit 4f5461e327
2 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,4 @@
import { META_DESCRIPTION, SIDEBAR_TEXT } from '@/app/config'; import { ABOUT_DESCRIPTION_DEFAULT } from '@/app/config';
export interface AboutInsert { export interface AboutInsert {
id: number id: number
@ -16,5 +16,4 @@ export interface About extends AboutInsert {
export const getDescriptionWithFallback = (about?: About) => export const getDescriptionWithFallback = (about?: About) =>
about?.description || about?.description ||
META_DESCRIPTION || ABOUT_DESCRIPTION_DEFAULT;
SIDEBAR_TEXT;

View File

@ -152,6 +152,10 @@ export const SIDEBAR_TEXT =
process.env.NEXT_PUBLIC_PAGE_ABOUT || process.env.NEXT_PUBLIC_PAGE_ABOUT ||
process.env.NEXT_PUBLIC_SITE_ABOUT; process.env.NEXT_PUBLIC_SITE_ABOUT;
export const ABOUT_DESCRIPTION_DEFAULT =
process.env.NEXT_PUBLIC_META_DESCRIPTION ||
process.env.NEXT_PUBLIC_SIDEBAR_TEXT;
// STORAGE // STORAGE
// STORAGE: DATABASE // STORAGE: DATABASE