refactor: remove ZEN_DESCRIPTION env variable usage
Remove the `ZEN_DESCRIPTION` environment variable from `.env.example` and its usage in `generateMetadata`. The description field is no longer needed in the default metadata configuration.
This commit is contained in:
@@ -2,7 +2,6 @@
|
|||||||
NEXT_PUBLIC_URL=http://localhost:3000
|
NEXT_PUBLIC_URL=http://localhost:3000
|
||||||
NEXT_PUBLIC_URL_DEV=http://localhost:3000
|
NEXT_PUBLIC_URL_DEV=http://localhost:3000
|
||||||
ZEN_NAME=ZEN
|
ZEN_NAME=ZEN
|
||||||
ZEN_DESCRIPTION=
|
|
||||||
|
|
||||||
# CONFIG
|
# CONFIG
|
||||||
ZEN_TIMEZONE=America/Toronto
|
ZEN_TIMEZONE=America/Toronto
|
||||||
@@ -13,7 +12,6 @@ ZEN_SUPPORT_EMAIL=support@exemple.com
|
|||||||
|
|
||||||
# DATABASE
|
# DATABASE
|
||||||
ZEN_DATABASE_URL=postgres://USER:PASSWORD@HOST:PORT/postgres
|
ZEN_DATABASE_URL=postgres://USER:PASSWORD@HOST:PORT/postgres
|
||||||
# Used when NODE_ENV=development (falls back to ZEN_DATABASE_URL if unset)
|
|
||||||
ZEN_DATABASE_URL_DEV=postgres://USER:PASSWORD@HOST:PORT/postgres_dev
|
ZEN_DATABASE_URL_DEV=postgres://USER:PASSWORD@HOST:PORT/postgres_dev
|
||||||
|
|
||||||
# STORAGE (Cloudflare R2 for now)
|
# STORAGE (Cloudflare R2 for now)
|
||||||
|
|||||||
@@ -70,7 +70,6 @@ export async function generateMetadata({ params }) {
|
|||||||
// Default metadata
|
// Default metadata
|
||||||
return {
|
return {
|
||||||
title: process.env.ZEN_NAME || 'ZEN',
|
title: process.env.ZEN_NAME || 'ZEN',
|
||||||
description: process.env.ZEN_DESCRIPTION || '',
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user