Update fetch URL to use BASE_URL for config.json (#652)

Fixes #644.
This commit is contained in:
Patrick Kranz 2025-05-09 17:44:41 +02:00 committed by GitHub
parent 1e8b4cc885
commit b2a3fb0f87
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,7 +5,7 @@ import { createRoot } from "react-dom/client";
import App from "./App";
import { AppContext } from "./AppContext";
fetch("config.json")
fetch(`${import.meta.env.BASE_URL}/config.json`)
.then(res => res.json())
.then(props =>
createRoot(document.getElementById("root")).render(