add build command

This commit is contained in:
jiayx committed 2025-06-22 19:48:34 -04:00
1 parent c35c57d700
commit d1f3eba6d1
4 files changed
+4 -8

No files matched your search

-3
View File
@@ -146,9 +146,6 @@ pnpm dev:backend
<div style="background-color: #2d2d2d; color: #ffffff; padding: 15px; border-radius: 5px; margin: 15px 0;">
```bash
# frontend build
pnpm build:frontend
# deploy
pnpm run deploy
```
-3
View File
@@ -147,9 +147,6 @@ pnpm dev:backend
<div style="background-color: #2d2d2d; color: #ffffff; padding: 15px; border-radius: 5px; margin: 15px 0;">
```bash
# 前端构建
pnpm build:frontend
# 部署
pnpm run deploy
```
+1 -2
View File
@@ -5,8 +5,7 @@
"scripts": {
"dev:frontend": "pnpm --filter frontend run dev",
"dev:backend": "wrangler dev",
"build:frontend": "pnpm --filter frontend run build",
"build:backend": "wrangler deploy --dry-run --outdir dist",
"build": "pnpm --filter frontend run build",
"deploy": "wrangler deploy"
},
"keywords": [],
+3
View File
@@ -16,6 +16,9 @@ database_id = "987e6b1a-946a-4cba-84fc-23c4c31d72d6" # 需要替换为您的实
[triggers]
crons = ["0 * * * *"] # 每小时运行一次清理任务
[build]
command = "pnpm run build"
[assets]
binding = "ASSETS"
directory = "frontend/dist"