Files
hapi/website/package.json
T
weishu 6e9b7928a1 feat(website): redesign in HAPI style with prerendered, crawlable pages
- Replace the Manus SPA with Vite SSR prerendering: / (en), /zh/ (zh) and a
  real 404, hydrated on the client with the locale taken from the URL
- Per-locale head: canonical, hreflang, Open Graph, JSON-LD (Organization,
  WebSite, SoftwareApplication, FAQPage), and a 1200x630 og image
- Warm HAPI look: brand coral on warm white, system fonts, light/dark, mascots
  from the App Store creative and current native screenshots (WebP)
- Show the real agent logos used in the web app, put App Store / Google Play
  badges in the hero and move Docs to the header
- Drop the pricing note from the home page; add a FAQ on why native apps are
  paid and that their source is open
- Remove react-helmet-async, i18next, wouter, framer-motion and other unused
  dependencies; add @lobehub/icons for the agent logos
- Serve /zh, 404 and the legacy /?lng=zh redirect from the Express server
2026-11-18 12:55:02 +08:00

40 lines
1.1 KiB
JSON

{
"name": "hapi-website",
"version": "1.0.0",
"type": "module",
"license": "AGPL-3.0-only",
"scripts": {
"dev": "vite --host",
"build": "vite build && vite build --ssr src/entry-server.tsx --outDir dist/ssr && bun scripts/prerender.ts && esbuild src/server/index.ts --platform=node --packages=external --bundle --format=esm --outdir=dist",
"start": "NODE_ENV=production node dist/index.js",
"preview": "vite preview --host",
"check": "tsc --noEmit",
"format": "prettier --write ."
},
"dependencies": {
"@lobehub/icons": "^5.14.0",
"express": "^4.21.2",
"lucide-react": "^0.453.0",
"react": "^19.2.1",
"react-dom": "^19.2.1"
},
"devDependencies": {
"@tailwindcss/vite": "^4.1.3",
"@types/express": "4.17.21",
"@types/node": "^24.7.0",
"@types/react": "^19.2.1",
"@types/react-dom": "^19.2.1",
"@vitejs/plugin-react": "^5.0.4",
"esbuild": "^0.25.0",
"prettier": "^3.6.2",
"tailwindcss": "^4.1.14",
"typescript": "5.6.3",
"vite": "^7.1.7"
},
"overrides": {
"tailwindcss>nanoid": "3.3.7",
"ws": "8.21.0",
"katex": "0.18.2"
}
}