Skip to content

Commit

Permalink
Update fetch URL to use BASE_URL for config.json
Browse files Browse the repository at this point in the history
  • Loading branch information
LokiMidgard committed Jan 6, 2025
1 parent 9fc0050 commit 0a35cb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 0a35cb1

Please sign in to comment.