mirror of
https://github.com/Tomato6966/investment-portfolio-simulator.git
synced 2025-04-12 12:08:43 +02:00
Configure dynamic basename for GitHub Pages deployment
This commit is contained in:
parent
304471c314
commit
b4de0ba633
1 changed files with 2 additions and 1 deletions
|
@ -9,7 +9,8 @@ import { DarkModeProvider } from "./providers/DarkModeProvider.tsx";
|
||||||
|
|
||||||
// Let App handle the route definitions
|
// Let App handle the route definitions
|
||||||
const router = createBrowserRouter(App, {
|
const router = createBrowserRouter(App, {
|
||||||
basename: "/"
|
// for github pages...
|
||||||
|
basename: process.env.CUSTOM_BASE_NAME || "investment-portfolio-simulator"
|
||||||
});
|
});
|
||||||
|
|
||||||
ReactDOM.createRoot(document.getElementById('root')!).render(
|
ReactDOM.createRoot(document.getElementById('root')!).render(
|
||||||
|
|
Loading…
Add table
Reference in a new issue