From 4f5461e327e0d77cb85565d827107d7dbfe218bd Mon Sep 17 00:00:00 2001 From: Sam Becker Date: Sun, 1 Mar 2026 23:19:26 -0600 Subject: [PATCH] Refine default about description --- src/about/index.ts | 5 ++--- src/app/config.ts | 4 ++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/about/index.ts b/src/about/index.ts index cf97a7a7..9f8605d4 100644 --- a/src/about/index.ts +++ b/src/about/index.ts @@ -1,4 +1,4 @@ -import { META_DESCRIPTION, SIDEBAR_TEXT } from '@/app/config'; +import { ABOUT_DESCRIPTION_DEFAULT } from '@/app/config'; export interface AboutInsert { id: number @@ -16,5 +16,4 @@ export interface About extends AboutInsert { export const getDescriptionWithFallback = (about?: About) => about?.description || - META_DESCRIPTION || - SIDEBAR_TEXT; + ABOUT_DESCRIPTION_DEFAULT; diff --git a/src/app/config.ts b/src/app/config.ts index dae6b18f..c925cd8b 100644 --- a/src/app/config.ts +++ b/src/app/config.ts @@ -152,6 +152,10 @@ export const SIDEBAR_TEXT = process.env.NEXT_PUBLIC_PAGE_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: DATABASE