Palun ReactJs documentation
Going live
Publish Palun on Netlify, Cloudflare Pages or any static host.
Palun 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
- Create a Pages project and connect your repository.
- Use the build settings above.
- 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.