A request to the Cloudflare API failed
Background
To deploy the project, I build it with
pnpm next-on-pages
, and then deploy it with wrangler pages deploy
.
Issue
When I run the deploy command, then the script throws an error:
I used to deploy projects a few days ago, but now I can't. How may I start deploying again?
Environment
2 Replies
It happens consistently when you deploy the same thing, and you didn't make any changes to the project code that might have caused it?
Could you also just to be sure, try updating to the latest wrangler? It's up to 3.65.1 now
@Erisa thanks for the diagnostic idea
I found the problem. I created a new
page.tsx
and added export const runtime = 'edge';
. After removing export const runtime = 'edge';
, I could deploy the page. Thanks!