
wrangler.toml in Pages at all. The fact that it kind of works is a bug.wrangler folder). You can use Nora's D1 Tool to pull a copy of your D1 DB down, which can then be used locally--d1 flag to run migrations/commands...--d1 BINDING=IDd1.
wrangler.toml file is required for local development of a D1 database? I'm trying to run some migrations, but it's not working unless I create the file. I don't quite get why it's needed when the only thing required for local development is the binding.npx wrangler d1 migrations apply DB --localwrangler dev?wrangler tail show anything?wrangler.tomlwrangler.toml.wrangler--d1--d1 BINDING=IDwrangler-proxyd1[[d1_databases]]
binding = "DB"
database_id = "<can_be_any_string>"
database_name = "<can_be_any_string>"
preview_database_id = "DB"npx wrangler d1 migrations apply DB --localwrangler devwrangler tailwrangler d1 execute YOUR_DATABASE_NAME --local --command "CREATE TABLE IF NOT EXISTS users ( user_id INTEGER PRIMARY KEY, email_address TEXT, created_at INTEGER, deleted INTEGER, settings TEXT);"wrangler d1 execute YOUR_DATABASE_NAME --local --file something.sql