File tree Expand file tree Collapse file tree 4 files changed +5
-14
lines changed Expand file tree Collapse file tree 4 files changed +5
-14
lines changed Original file line number Diff line number Diff line change 1
- const host = window . location . host ;
2
- const isDev = import . meta. env . DEV ;
3
-
4
1
export const STATIC_URL =
5
- host + isDev
6
- ? '/src/assets/data/valenbici_static.json'
7
- : '/assets/data/valenbici_static.json' ;
2
+ 'https://steciuk.github.io/freebici-data/valenbici_static.json' ;
8
3
export const HISTORIC_URL =
9
- host + isDev
10
- ? '/src/assets/data/valenbici_historic.json'
11
- : '/assets/data/valenbici_historic.json' ;
4
+ 'https://steciuk.github.io/freebici-data/valenbici_historic.json' ;
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
import { StrictMode } from 'react' ;
2
2
import * as ReactDOM from 'react-dom/client' ;
3
- import { BrowserRouter } from 'react-router-dom' ;
3
+ import { HashRouter } from 'react-router-dom' ;
4
4
5
5
import { LocalizationProvider } from '@mui/x-date-pickers' ;
6
6
import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs' ;
@@ -13,9 +13,9 @@ const root = ReactDOM.createRoot(
13
13
root . render (
14
14
< StrictMode >
15
15
< LocalizationProvider dateAdapter = { AdapterDayjs } >
16
- < BrowserRouter >
16
+ < HashRouter >
17
17
< App />
18
- </ BrowserRouter >
18
+ </ HashRouter >
19
19
</ LocalizationProvider >
20
20
</ StrictMode >
21
21
) ;
You can’t perform that action at this time.
0 commit comments