From 58f79c306a80c5aad32d642b84098a239d95acb4 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 21 Jun 2020 22:49:42 -0700 Subject: Support static website --- modern/package.json | 1 + 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(( - + - + ), document.getElementById('root')); -- cgit v1.2.3