Add VitePress site with local login and deployment docs

Enable static site build on port 12100 with Express session auth, auto sidebar, and DEPLOY.md for Ubuntu/NPS setup.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-05 16:12:35 +08:00
parent 2a1dc95253
commit 68d816b3f3
102 changed files with 4419 additions and 7 deletions
+21
View File
@@ -0,0 +1,21 @@
{
"name": "dao-de-jing-site",
"private": true,
"type": "module",
"scripts": {
"docs:dev": "vitepress dev --host 0.0.0.0 --port 5173",
"docs:build": "node scripts/prepare-public.mjs && vitepress build",
"docs:preview": "vitepress preview --host 0.0.0.0 --port 5173",
"build": "node scripts/prepare-public.mjs && vitepress build",
"start": "node server/index.js",
"serve": "npm run build && npm run start"
},
"devDependencies": {
"vitepress": "^1.6.3"
},
"dependencies": {
"cookie-parser": "^1.4.7",
"express": "^4.21.2",
"express-session": "^1.18.1"
}
}