Skip to content

Commit df59413

Browse files
DennisAlundCopilot
andcommitted
fix: deploy command is just wrangler deploy
Migrations are handled by the migrate.yml GitHub Action after successful deployment. Chaining them in the deploy script fails because wrangler deploy auto-provisions D1 without writing the database_id back to wrangler.toml, which d1 migrations apply needs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent b2bc1f9 commit df59413

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"license": "Apache-2.0",
66
"scripts": {
77
"dev": "wrangler dev",
8-
"deploy": "wrangler deploy && npm run db:migrate:remote",
8+
"deploy": "wrangler deploy",
99
"wrangler-login": "wrangler login",
1010
"db:create": "wrangler d1 create shrtnr-db",
1111
"db:migrate": "wrangler d1 migrations apply DB --local",

0 commit comments

Comments
 (0)