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-cloudflare
GitHub
GitHub - Rei-x/next-on-cloudflare
Contribute to Rei-x/next-on-cloudflare development by creating an account on GitHub.
6 Replies
James
James2y ago
Please can you try deploying locally using Wrangler@3?
Rei
ReiOP2y ago
locally it works fine
James
James2y ago
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
Rei
ReiOP2y ago
is there any ETA when wrangler@3 will be supported on pages git ci? i will try this for now
James
James2y ago
not that i'm aware of
Rei
ReiOP2y ago
okay, thank you for help!
Want results from more Discord servers?
Add your server