From 4951d49922be990a3cc92804a48856116ba651a8 Mon Sep 17 00:00:00 2001 From: NagakawaMizore <1632122738@qq.com> Date: Fri, 3 Apr 2026 16:27:21 +0800 Subject: Update README with authentication key generation steps Added instructions for generating authentication key and updating .env file. Signed-off-by: NagakawaMizore <1632122738@qq.com> --- README | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'README') diff --git a/README b/README index 2512df8..1460ae7 100644 --- a/README +++ b/README @@ -60,7 +60,21 @@ docker run -d \ Then, copy .env.example to .env and fill in the required environment variables that suit your setup. + +Generate authentication key: This project uses Better Auth. +A secure key of at least 32 characters must be provided. +Please run the following command in the terminal to generate it: +npx @better-auth/cli secret + +Add the generated string to the .env file: +BETTER_AUTH_SECRET =The extremely long random string you just generated + Run: pnpm install + +Run installation of react-syntax-highlighter dependencies: +pnpm add react-syntax-highlighter +pnpm add -D @types/react-syntax-highlighter + Run Payload CMS migrations: pnpm payload migrate Run database migrations: pnpm db:push (optional: SKIP_ENV_VALIDATION=1 pnpm db:push) -- cgit v1.2.3