Remix.run Logo
sapiogram 18 hours ago

What is Vercel doing to React? I just know them as a simple hosting solution.

c-hendricks 15 hours ago | parent | next [-]

For one they're shifting React to require a hosting solution.

/snark

latchkey 18 hours ago | parent | prev | next [-]

At least in my own experience, I tried building a relatively simple static SPA NextJS React app with their router, and wanted to host it on CloudFlare Pages.

It ran locally in dev mode just fine. Once I deployed it on CFP, the router broke. No errors in the console, it just didn't work.

If I'm forced to use Vercel to make a simple SPA work, which then forced me into paying for their service, that's the problem.

byteCoder 18 hours ago | parent [-]

OpenNext on Cloudflare is the only way I've successfully gotten NextJS to work in a Cloudflare Worker.

https://opennext.js.org/cloudflare

latchkey 16 hours ago | parent [-]

Interesting. Yea, I didn't want a worker, just a static html page with my javascript.

kcrwfrd_ 15 hours ago | parent [-]

You need to configure it for static export if that’s what you want: https://nextjs.org/docs/app/guides/static-exports

But this won’t support all framework features. The default expectation for Next.js is with a server runtime for SSR.

postalrat 18 hours ago | parent | prev | next [-]

They developed next.js

sapiogram 7 hours ago | parent [-]

Thank you, that's really all the context I needed.

CBLT 18 hours ago | parent | prev [-]

Vercel is anything but simple. Easy? Sure.