mirror of
https://github.com/empayre/fleet.git
synced 2024-11-07 01:15:22 +00:00
adf87140a7
- Add the server_url_prefix flag for configuring this functionality - Add prefix handling to the server routes - Refactor JS to use appropriate paths from modules - Use JS template to get URL prefix into JS environment - Update webpack config to support prefixing Thanks to securityonion.net for sponsoring the development of this feature. Closes #1661
13 lines
263 B
JavaScript
13 lines
263 B
JavaScript
import ReactDOM from 'react-dom';
|
|
|
|
import './public-path';
|
|
import routes from './router';
|
|
import './index.scss';
|
|
|
|
if (typeof window !== 'undefined') {
|
|
const { document } = global;
|
|
const app = document.getElementById('app');
|
|
|
|
ReactDOM.render(routes, app);
|
|
}
|