There seems to be an issue with functions or D1. All of a sudden our deployments have started failin
There seems to be an issue with functions or D1. All of a sudden our deployments have started failing with
Error: Failed to publish your Function. Got error: binding MYAPP_DB of type d1 failed to generate. Please try again later or contact support.npx wrangler deployD1.getById function
migrations folder do have some unapplied .sql files, but it fails to find themdatabase_id of remote database in [[d1_databases]] section. I thought, when we supply --remote parater, it picks the [[env.production.d1_databases]] section. I am struggling to understand wrangler.toml file structure.npx drizzle-kit push command. Anyone know what's going on?

npx wrangler deployD1.getById[[d1_databases]]
binding = "DB"
database_name = "name-db"
database_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
preview_database_id = "LOCAL-MY-DB" # Required for Pages local development
migrations_dir = "migrations"
[vars]
[[env.production.d1_databases]]
binding = "DB"
database_name = "name-db"
database_id = "8someguid63a"
migrations_dir = "migrations"migrations .sqldatabase_id[[d1_databases]][[env.production.d1_databases]]npx drizzle-kit push[✓] Pulling schema from database...
Error: 7500: not authorized: SQLITE_AUTHd1_databases = [
{ binding = "configs", database_name = "configs", database_id = "f1e42435-758a-4abf-842d-2303131a96a1" },
]