File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ( [
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments