Skip to content

Commit b2a3fb0

Browse files
authored
Update fetch URL to use BASE_URL for config.json (#652)
Fixes #644.
1 parent 1e8b4cc commit b2a3fb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { createRoot } from "react-dom/client";
55
import App from "./App";
66
import { AppContext } from "./AppContext";
77

8-
fetch("config.json")
8+
fetch(`${import.meta.env.BASE_URL}/config.json`)
99
.then(res => res.json())
1010
.then(props =>
1111
createRoot(document.getElementById("root")).render(

0 commit comments

Comments
 (0)