feat(frontend): enable Nuxt SSR and migrate to Nitro server

Set `ssr: true` in Nuxt config and switch build command to `nuxt build`.
Update Dockerfile to run `.output/server/index.mjs` and remove static server.
Defer SEO initialization to prevent premature evaluation during SSR.
This commit is contained in:
2026-05-06 10:28:12 +08:00
parent cf1eb6965e
commit 35ee164794
7 changed files with 34 additions and 102 deletions

View File

@@ -6,7 +6,7 @@
"type": "module",
"scripts": {
"dev": "nuxt dev --host 0.0.0.0 --port 20015",
"build": "nuxt generate",
"build": "nuxt build",
"lint": "nuxt typecheck",
"typecheck": "nuxt typecheck",
"test": "vitest run"