Cloudflare DevelopersCD
Cloudflare Developers2y ago
14 replies
wesbos

Hey folks - trying to migrate from the

Hey folks - trying to migrate from the previous setupDevBindings to the new setupDevPlatform - I've got it working except it seems to not be pointing at the correct local sqlite DB for the D1 driver.

This was my previous config file, have I not specified the wrangler toml correctly?

setupDevBindings({
        bindings: {
          D1: {
            type: "d1",
            databaseName: "podcast-stats-prod",
            id: "e2659b9a-928c-4218-beb5-518b87f59c4f",
          },
        },
      });


[[d1_databases]]
binding = "D1"
database_name = "podcast-stats-prod"
database_id = "e2659b9a-928c-4218-beb5-518b87f59c4f"
Was this page helpful?