Not sure if this has been reported

Not sure if this has been reported before but migrations_dir is ignored for D1 when database_id is omitted (trying out the automatic provisioning)

To reproduce:

{
  // ... rest of config
  "d1_databases": [
    {
      "binding": "DB",
      "migrations_dir": "src/.server/db/migrations",
    },
  ]
}


Run wrangler dev

 ⛅️ wrangler 4.54.0
───────────────────
Resource location: local 

Use --remote if you want to access the remote instance.

▲ [WARNING] No migrations folder found. Set `migrations_dir` in your wrangler.json file to choose a different path.

✘ [ERROR] No migrations present at /Users/thomasjiang/Projects/mistle-update-template-bjsl/packages/templates/web/apps/app/migrations.
Was this page helpful?