Skip to content

Commit 24e0265

Browse files
committed
update path
1 parent aff372e commit 24e0265

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/LightCurvePlot.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export default function LightCurvePlot() {
8787

8888
for (const sel of dataSelection) {
8989
const [epoch, r1, r2] = sel.split('_');
90-
const makePath = (wave: 'sw' | 'lw') => `/data/json/ZTF_J1539/rawdata/${epoch}/${wave}/${r1}/${r2}.json`;
90+
const makePath = (wave: 'sw' | 'lw') => `${process.env.BASE_PATH}/data/json/ZTF_J1539/rawdata/${epoch}/${wave}/${r1}/${r2}.json`;
9191

9292
try {
9393
const [swJson, lwJson] = await Promise.all([

src/components/Sidebar/Sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default function Sidebar() {
1717
useEffect(() => {
1818
async function loadDataList() {
1919
try {
20-
const res = await fetch('/data/json/ZTF_J1539/dataList.json');
20+
const res = await fetch(`${process.env.BASE_PATH}/data/json/ZTF_J1539/dataList.json`);
2121
const docs = await res.json();
2222
setDataList(docs.map((d: string) => ({ label: d, value: d })));
2323
} catch (err) {

0 commit comments

Comments
 (0)