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