you basically have to run `wrangler pages dev ... --d1=DB` and set `preview_database_id="DB"` in yo

you basically have to run wrangler pages dev ... --d1=DB and set preview_database_id="DB" in your wrangler.toml so that the wrangler d1 commands use the same database locally
Was this page helpful?