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:
鲁树人 committed 2026-11-05 20:47:16 +09:00
1 parent ef4cd9c21e
commit 79e5b45e6b
4 files changed
+15 -10

No files matched your search

+1 -1
View File
@@ -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 />}>
-4
View File
@@ -17,7 +17,3 @@ declare module '*&mac-command' {
export const commandName: string;
export const tarName: string;
}
declare interface Window {
BASE_URL: string;
}