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