From 51edb93b7d098d6c51565fcbdb3375b03b5bad1f Mon Sep 17 00:00:00 2001 From: Kaiya Date: Tue, 4 Aug 2026 14:06:33 +0200 Subject: [PATCH] Update Caddy example in README.md --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 217222b8d..e58271b9a 100644 --- a/README.md +++ b/README.md @@ -44,13 +44,17 @@ There are several ways to deploy the UI publicly. Here are two common options: **Add Rewrite Rules for Client-Side Routing** -The explorer is a single-page application (SPA). To ensure that all routes are handled correctly, add a rewrite rule to your web server configuration. For example: +The explorer is a single-page application (SPA). To ensure that all routes are +handled correctly, add a [try_files rule](try) to your web server configuration. +For example: Caddy: ``` example.com { - rewrite * /index.html + root * /path/to/radicle-explorer/build + try_files {path} /index.html + file_server } ``` @@ -212,4 +216,5 @@ The UI is distributed under the terms of GPLv3. See [LICENSE][lic] for details. [npm]: https://www.npmjs.com [pat]: https://radicle.network/nodes/iris.radicle.network/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5/patches [rad]: https://radicle.dev +[try]: https://caddyserver.com/docs/caddyfile/patterns#single-page-apps-spas [zul]: https://radicle.zulipchat.com/#narrow/stream/369278-web