This repository was archived by the owner on Jan 16, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-17
lines changed
Expand file tree Collapse file tree 3 files changed +5
-17
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 22
33import React , { Component , ReactElement } from 'react' ;
44import { Router , Route , Switch } from 'react-router-dom' ;
5+ import { createBrowserHistory } from 'history' ;
56import { AppContextConsumer , AppStateInterface } from './App/App' ;
67
78import { asyncComponent } from './utils/asyncComponent' ;
8- import history from './history' ;
99import Header from './components/Header' ;
1010
11+ const history = createBrowserHistory ( {
12+ basename : window . __VERDACCIO_BASENAME_UI_OPTIONS && window . __VERDACCIO_BASENAME_UI_OPTIONS . url_prefix ,
13+ } ) ;
14+
1115const NotFound = asyncComponent ( ( ) => import ( './components/NotFound' ) ) ;
1216const VersionPackage = asyncComponent ( ( ) => import ( './pages/version/Version' ) ) ;
1317const HomePage = asyncComponent ( ( ) => import ( './pages/home' ) ) ;
Original file line number Diff line number Diff line change @@ -18,11 +18,3 @@ export function getRegistryURL(): string {
1818 // Don't add slash if it's not a sub directory
1919 return `${ location . origin } ${ location . pathname === '/' ? '' : location . pathname } ` ;
2020}
21-
22- export function getBaseNamePath ( ) : string {
23- return window . __VERDACCIO_BASENAME_UI_OPTIONS && window . __VERDACCIO_BASENAME_UI_OPTIONS . url_prefix ;
24- }
25-
26- export function getRootPath ( ) : string {
27- return window . __VERDACCIO_BASENAME_UI_OPTIONS && window . __VERDACCIO_BASENAME_UI_OPTIONS . base ;
28- }
You can’t perform that action at this time.
0 commit comments