mirror of
https://git.um-react.app/um/um-react.git
synced 2026-10-25 16:03:02 +00:00
feat: allow deployment on subpaths
This commit is contained in:
@@ -25,7 +25,7 @@ export function AppRoot() {
|
||||
useEffect(() => persistSettings(store), []);
|
||||
|
||||
return (
|
||||
<BrowserRouter>
|
||||
<BrowserRouter basename={window.BASE_URL || '/'}>
|
||||
<Provider store={store}>
|
||||
<div role="tablist" className="tabs tabs-border w-full justify-center border-b-2 border-base-200 box-content">
|
||||
<NavLink to="/" role="tab" className={tabClassNames}>
|
||||
|
||||
Vendored
+4
@@ -17,3 +17,7 @@ declare module '*&mac-command' {
|
||||
export const commandName: string;
|
||||
export const tarName: string;
|
||||
}
|
||||
|
||||
declare interface Window {
|
||||
BASE_URL: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user