NextJS deployment fails after adding D1 binding
domain: next-on-cloudflare-boy.pages.dev
deploymentId: 6e079786-4d28-4262-83a0-e14280c26198
accountId: b26f727ceebb9fef992e39350f2828e6
I have barebones @cloudflare/next-on-pages setup (from
npm create cloudflare@latest
) and deployment was working fine until I added D1 binding.
Now it fails everytime I push new changes to repo. Interestingly, deployment using wrangler pages deploy
works fine.
repository: https://github.com/Rei-x/next-on-cloudflareGitHub
GitHub - Rei-x/next-on-cloudflare
Contribute to Rei-x/next-on-cloudflare development by creating an account on GitHub.
![](https://cdn.answeroverflow.com/1126852465363529769/image.png)
6 Replies
Please can you try deploying locally using Wrangler@3?
locally it works fine
Yeah it's an issue caused by the wrangler version in the Pages git CI, since that's still on v2
You could try using a github workflow to deploy instead perhaps, using something like https://github.com/cloudflare/pages-action
is there any ETA when wrangler@3 will be supported on pages git ci?
i will try this for now
not that i'm aware of
okay, thank you for help!