This repo is the source code of handytool.store
- Fork 或克隆此仓库
- 访问 Cloudflare Dashboard
- 进入 "Pages" 部分
- 点击 "Create a project"
- 选择 "Connect to Git"
- 连接你的 GitHub 仓库
- 配置构建设置:
- Framework preset: None
- Build command:
yarn build - Build output directory:
dist - Root directory:
/(留空)
- 点击 "Save and Deploy"
- 安装 Cloudflare CLI:
npm install -g wrangler- 登录 Cloudflare:
wrangler login- 部署项目:
./deploy.sh-
在 GitHub 仓库设置中添加以下 Secrets:
CLOUDFLARE_API_TOKEN: 你的 Cloudflare API TokenCLOUDFLARE_ACCOUNT_ID: 你的 Cloudflare Account ID
-
推送代码到 main/master 分支即可自动部署
# 安装依赖
yarn install
# 启动开发服务器
yarn dev
# 构建项目
yarn build
# 预览构建结果
yarn preview├── src/
│ ├── pages/ # 多页面应用
│ ├── components/ # Svelte 组件
│ └── utils/ # 工具函数
├── dist/ # 构建输出目录
├── public/ # 静态资源
└── script/ # 构建脚本
- 框架: Svelte 4
- 构建工具: Vite
- 样式: Sass
- 部署: Cloudflare Pages
MIT License