How’s your experience hosting Nextjs on cloudflare worker?
I’m looking to host Nextjs on cloudflare worker but I’m not sure what things I should be aware of that might not still be compatible. As a small example, can we use axios? Either in frontend code or api route code?
3 Replies
If you use Next.js, edge function is a must
It's easy https://developers.cloudflare.com/workers/framework-guides/web-apps/nextjs/#nextjs-supported-features you'll need to add opennext adaptor it's easy.
Cloudflare Docs
Next.js
Create an Next.js application and deploy it to Cloudflare Workers with Workers Assets.



Let me know if you need help