build(deploy): migrate d1 before deployment

Apply pending D1 migrations before deploying code that requires
them. Stop deployment when migration fails instead of running
against an incomplete schema.
This commit is contained in:
翅膀 committed 2026-10-23 23:23:59 +08:00
1 parent 8bfa8da2ec
commit a62044f359
1 file changed
+1 -1
+1 -1
View File
@@ -8,7 +8,7 @@
"scripts": {
"dev": "nuxt dev",
"build": "nuxt build",
"deploy": "wrangler deploy",
"deploy": "bun run db:migrate:prod && wrangler deploy",
"cf:dev": "nuxt build && wrangler dev",
"preview": "nuxt preview",
"typecheck": "nuxt typecheck",