HypoMux Website
HypoMux 官网,基于 VitePress + Vue 构建。网站是纯静态内容:无需 Node 服务、数据库、Docker 或 VPS。
本地开发
powershell
npm install
npm run dev验证
powershell
npm run lint
npm run typecheck
npm run build构建结果位于 dist/。
Cloudflare Workers
在 Cloudflare Workers 中通过 Git 集成连接此仓库,并设置:
| 设置 | 值 |
|---|---|
| Build command | npm run build |
| Deploy command | npx wrangler deploy |
| Worker configuration | wrangler.jsonc |
| Node.js | 22 或更新版本 |
wrangler.jsonc 会把构建生成的 dist/ 作为 Worker Static Assets 发布。部署后在 Worker 的 Settings > Domains & Routes 中添加 hypomux.com。根域名需要由同一 Cloudflare 账户托管;Cloudflare 会自动配置所需路由。
不要为 HTML 开启 Auto Minify,以免移除 Vue hydration 所需的注释。