cloudflare / template-registry

A simple API via a Worker that serves all the template content
https://developers.cloudflare.com/workers/templates
Apache License 2.0
62 stars 37 forks source link

Add a template for react SSR app #13

Open exvuma opened 4 years ago

exvuma commented 4 years ago

There is no template available regarding react SSR in Cloudflare workers. Hoping there is way to deploy serverless app via Cloudflare workers for server side rendering. What would be best choice of tool? Nextjs or helmet with parcel? What would be the best way to implement react SSR ?

Fleuv commented 4 years ago

Any update on this, @nodebotanist didn't you made a template for this?

Trying to get this working with Next.js however no luck so far.

For other SSR tools I've seen some setups, this guy seemed to have figure it out for Vue.js. However with Next.js it's a bit different I guess, because when you target serverless mode it will give you a fully rendered HTML page or API response. At this Vue template the author creates a HTML template manually and dynamically renders it with the page content. Not sure if this is correct tho.