this is my `wrangler.toml`: ```toml name = "[the name]" compatibility_date = "2024-07-29" pages_bui

this is my
wrangler.toml
:

name = "[the name]"
compatibility_date = "2024-07-29"
pages_build_output_dir = ".svelte-kit/cloudflare"

[[env.production.d1_databases]]
binding = "db"
database_name = "prod-main"
database_id = "524d4c4f-410b-46f9-9a87-2dc4f6110b1c"

[[env.preview.d1_databases]]
binding = "db"
database_name = "dev-main"
database_id = "025df237-d405-4f57-859f-ad3a055fd74b"


and when I try to run wrangler d1 migrations apply prod-main --local (or even without --local) it says:

 ⛅️ wrangler 3.72.0
-------------------

✘ [ERROR] Couldn't find a D1 DB with the name or binding 'prod-main' in wrangler.toml.


is it because of the way I've set up the environment variables?
Was this page helpful?