-> Just throwing it out there, my honest feedback on my cloudlare experience. I tried to go full cl
-> Just throwing it out there, my honest feedback on my cloudlare experience.
I tried to go full cloudflare for my project https://fullwindcss.com/
I learnt it's called cutting edge because it will cut you
I went with
Maybe a mitigation is to use classic workers (not edge runtime nextjs api routes) to handle the backend? Hope Stripe works there.
I would have loved to have a great experience on cloudflare but we're not there yet.
I tried to go full cloudflare for my project https://fullwindcss.com/
I learnt it's called cutting edge because it will cut you
I went with
- nextjs (next-on-pages) app router, server components, server actions, edge runtime
- drizzle + D1 for database
- all the static parts work fine.
if you have a blog it will be great and free up to 1mb for your site's bundle which is turned into a worker function. I was just over 1mb and had to switch to workers paid for 5$ a month (which is very fair) - you get the benefits of serverless, the site can handle usage spikes without you having to worry about anything (non issue during the product hunt launch).
- Next Auth on Drizzle + D1 + edge runtime has been a challenge (but manageable). Examples in the repo are much nicer than the documentation
- Stripe payments that work in dev fail most of the time in prod. I tried to move from server actions to webhooks, still doesn't work and basically impossible to debug.
- Error logs can be super cryptic, like "Error: The script will never generate a response."
- you can't use cloudflare pages' sentry plug-in in a next-on-pages app, so no error reporting.
- Log retention is not possible at the moment. You can either stream from your terminal or from the web dashboard. Good luck debugging prod in these conditions.
- The team at cloudflare isn't super dedicated to next-on-pages. It's not a core product the way it is at Vercel. Github issues can stay unanswered for 2 weeks, and sometimes for ever. The Discord server is more active.
Maybe a mitigation is to use classic workers (not edge runtime nextjs api routes) to handle the backend? Hope Stripe works there.
I would have loved to have a great experience on cloudflare but we're not there yet.
