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(