Comment by _benton
2 months ago
I'm curious if Next has full support for Cloudflare or if this is the only way to run Next w/RSC off of Vercel.
2 months ago
I'm curious if Next has full support for Cloudflare or if this is the only way to run Next w/RSC off of Vercel.
I too have had to use Next but didn't want to feel locked into Vercel.
this is the biggest effort I'm aware to run Next with a full-ish feature set outside of Vercel: https://opennext.js.org/. Supports AWS, Cloudflare, and Netlify. You can also run Next as a normal node webserver. I've only used the Cloudflare integration and it was a bit janky but worked (and seems to be entering 1.0 soon so may be less janky).
AFAIK this is completely unsupported by the Next team, but would love to be proven wrong!
(I'm on the Next.js team) We're working with Cloudflare on an official adapter.
https://github.com/vercel/next.js/discussions/77740
that's great to hear, thank you for the update :)
Next works great as a vanilla node app. What features are you missing from Vercel's platform out of curiosity?
the biggest headache i had in particular was different ways of handling environment variables, but the different adapters at OpenNext have had a rolling list of caveats/unsupported features for as long as i've been following the project so i didn't want to outright say "full". hopefully the effort on Next's side to build a standardized adapter API will help with this!
1 reply →