fix: add build command to wrangler.toml for CI/CD compatibility

This commit is contained in:
Zheng Li
2026-03-03 19:27:34 +08:00
committed by Shuai
parent 4da5525a1a
commit 3622c58680
+3
View File
@@ -3,6 +3,9 @@ main = "src/index.ts"
compatibility_date = "2024-01-01" compatibility_date = "2024-01-01"
assets = { directory = "./dist", not_found_handling = "single-page-application", run_worker_first = ["/api/*", "/identity/*", "/icons/*", "/setup/*", "/config", "/notifications/*", "/.well-known/*"] } assets = { directory = "./dist", not_found_handling = "single-page-application", run_worker_first = ["/api/*", "/identity/*", "/icons/*", "/setup/*", "/config", "/notifications/*", "/.well-known/*"] }
[build]
command = "npm run build"
# D1 Database for storing vault data # D1 Database for storing vault data
[[d1_databases]] [[d1_databases]]
binding = "DB" binding = "DB"