/react-edge-ssr

An example of React + server-side rendering on the edge, using Cloudflare Workers

Primary LanguageJavaScriptApache License 2.0Apache-2.0

React Edge SSR on Cloudflare Workers

A simple React application, rendered on the edge using server-side rendering. react-helmet included as a sample of some slightly complex SSR behavior that compiles and renders without any issue on Cloudflare Workers 🙌

How to use

  1. Install Wrangler
  2. Generate your own version of this project: wrangler generate my-react-app https://github.com/signalnerve/react-edge-ssr
  3. Claim a subdomain: wrangler subdomain <your_subdomain>
  4. Fill in your config details in wrangler.toml
  5. Deploy using wrangler publish