mirror of
https://github.com/Tomato6966/investment-portfolio-simulator.git
synced 2025-04-04 14:40:36 +02:00
Update basename configuration for Vite environment
This commit is contained in:
parent
b4de0ba633
commit
e1bb3a5adb
2 changed files with 2 additions and 1 deletions
1
.env
Normal file
1
.env
Normal file
|
@ -0,0 +1 @@
|
|||
VITE_CUSTOM_BASE_NAME="/"
|
|
@ -10,7 +10,7 @@ import { DarkModeProvider } from "./providers/DarkModeProvider.tsx";
|
|||
// Let App handle the route definitions
|
||||
const router = createBrowserRouter(App, {
|
||||
// for github pages...
|
||||
basename: process.env.CUSTOM_BASE_NAME || "investment-portfolio-simulator"
|
||||
basename: import.meta.env.VITE_CUSTOM_BASE_NAME || "/investment-portfolio-simulator"
|
||||
});
|
||||
|
||||
ReactDOM.createRoot(document.getElementById('root')!).render(
|
||||
|
|
Loading…
Add table
Reference in a new issue