```--preview boolean optional Execute commands/files against a preview D1 database (as defined by pr

--preview boolean optional
Execute commands/files against a preview D1 database (as defined by preview_database_id in Wrangler.toml).

--local boolean(default: true) optional
Execute commands/files against a local database for use with wrangler dev.


hey guys, would like to ask what's the difference for local and preview actually? I only know that local is stored at your local .wrangler/state/v3/d1/miniflare-d1databaseobject/... directory but what's preview?
Was this page helpful?