diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-06-21 22:49:42 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-06-21 22:49:42 -0700 |
commit | 58f79c306a80c5aad32d642b84098a239d95acb4 (patch) | |
tree | 5ff249bc8ce5a60fda01a4ef77774bfcb5545896 /modern | |
parent | 14a858324d507c2780cf8b4d4219e01cb74a13e2 (diff) | |
download | trackermap-web-58f79c306a80c5aad32d642b84098a239d95acb4.tar.gz trackermap-web-58f79c306a80c5aad32d642b84098a239d95acb4.tar.bz2 trackermap-web-58f79c306a80c5aad32d642b84098a239d95acb4.zip |
Support static website
Diffstat (limited to 'modern')
-rw-r--r-- | modern/package.json | 1 | ||||
-rw-r--r-- | modern/src/index.js | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/modern/package.json b/modern/package.json index 02b080a4..2c88c5fe 100644 --- a/modern/package.json +++ b/modern/package.json @@ -2,6 +2,7 @@ "name": "traccar", "version": "0.1.0", "private": true, + "homepage": "/modern/", "dependencies": { "@craco/craco": "^5.6.4", "@material-ui/core": "^4.9.7", diff --git a/modern/src/index.js b/modern/src/index.js index 3c52b230..82ddef95 100644 --- a/modern/src/index.js +++ b/modern/src/index.js @@ -1,7 +1,7 @@ import 'typeface-roboto' import React from 'react'; import ReactDOM from 'react-dom'; -import { BrowserRouter } from 'react-router-dom' +import { HashRouter } from 'react-router-dom' import { Provider } from 'react-redux'; import App from './App'; @@ -10,9 +10,9 @@ import store from './store'; ReactDOM.render(( <Provider store={store}> - <BrowserRouter> + <HashRouter> <App /> - </BrowserRouter> + </HashRouter> </Provider> ), document.getElementById('root')); |