summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorNagakawaMizore <1632122738@qq.com>2026-04-03 16:27:21 +0800
committerGitHub <noreply@github.com>2026-04-03 16:27:21 +0800
commit4951d49922be990a3cc92804a48856116ba651a8 (patch)
treeea4d6b62eb2a762541c979ea6a365f8040fa4609 /README
parentf247a8c4a863ec430f4a705b5c493d652c8429bd (diff)
Update README with authentication key generation steps
Added instructions for generating authentication key and updating .env file. Signed-off-by: NagakawaMizore <1632122738@qq.com>
Diffstat (limited to 'README')
-rw-r--r--README14
1 files changed, 14 insertions, 0 deletions
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)