diff --git a/src/App.jsx b/src/App.jsx index ae1c088..3fbf6e8 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -47,7 +47,7 @@ export default function App() {
Civilytics — social science for the public good { e.target.style.display = 'none' }} diff --git a/src/components/ChartPanel.jsx b/src/components/ChartPanel.jsx index a15ba8f..dd437be 100644 --- a/src/components/ChartPanel.jsx +++ b/src/components/ChartPanel.jsx @@ -23,7 +23,7 @@ export default function ChartPanel({ district, state }) { // National rates from static fixture (or cache from loading step) let nat = window.__NATIONAL_RATES__ if (!nat) { - const res = await fetch('/data/national_rates.json') + const res = await fetch(import.meta.env.BASE_URL + 'data/national_rates.json') nat = await res.json() } setNationalRates(nat)