Deneb ReactJs documentation

Going live

Publish Deneb React on Netlify, Cloudflare Pages or any static host.

Deneb is a single-page React app, so your host has to send every address to index.html. Without that, a page such as a blog post returns a 404 when someone opens it directly or refreshes it.

Settings for every host

Setting Value
Build command npm run build
Output directory build

Netlify

Connect your repository, or upload the build folder. The included netlify.toml already sets the build command, the output directory and the redirect to index.html.

Cloudflare Pages

  1. Create a Pages project and connect your repository.
  2. Use the build settings above.
  3. Deploy, then add your domain under Custom domains.

Any other host

Run npm run build, upload everything inside build, and set up a rule that sends all addresses to index.html.