mirror of
https://git.um-react.app/um/um-react.git
synced 2026-11-25 22:56:59 +00:00
refactor: update HTML structure and improve deployment instructions
- Cleaned up the HTML structure in `index.html` for better readability. - Updated `README.md` to clarify deployment instructions for subdirectory setups. - Removed unused `BASE_URL` declaration from `vite-env.d.ts` and adjusted `AppRoot` to use `import.meta.env.BASE_URL` for improved environment variable handling.
This commit is contained in:
1 parent
ef4cd9c21e
commit
79e5b45e6b
4 files changed
+15
-10
No files matched your search
@@ -30,7 +30,7 @@ function AppBootFallback() {
|
||||
|
||||
export function AppRoot() {
|
||||
return (
|
||||
<BrowserRouter basename={window.BASE_URL || '/'}>
|
||||
<BrowserRouter basename={import.meta.env.BASE_URL}>
|
||||
<Provider store={store}>
|
||||
<PlatformProviderHost provider={platform}>
|
||||
<Suspense fallback={<AppBootFallback />}>
|
||||
|
||||
Vendored
-4
@@ -17,7 +17,3 @@ 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