From b2a3fb0f8768943aec4f6a198e77309069afcd1c Mon Sep 17 00:00:00 2001 From: Patrick Kranz Date: Fri, 9 May 2025 17:44:41 +0200 Subject: [PATCH] Update fetch URL to use BASE_URL for config.json (#652) Fixes #644. --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index 6819265..156cc5d 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -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(