From 98e11f406872b0cdcac2583ce04ab537b9a1ffdf Mon Sep 17 00:00:00 2001 From: Sebastian Martinez Date: Mon, 16 Jun 2025 08:49:11 +0200 Subject: [PATCH] Add a section about adding a rewrite rule if self-hosting --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index adfd841b2..2ae0d1c87 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,17 @@ There are several ways to deploy the UI publicly. Here are two common options: 1. Fork this repository to create your own version 2. Configure your Vercel account to deploy the forked repository +**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: + +Caddy: + +``` +example.com { + rewrite * /index.html +} +``` ## Configuration