Skip to content

Commit

Permalink
try to fix routing
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipthelen committed May 31, 2024
1 parent 2ee4d0e commit ee066f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export function App() {
<Header />
<main>
<Router>
<Route path="/" component={Generator} />
<Route path="/about" component={About} />
<Route path={import.meta.env.BASE_URL+"/"} component={Generator} />
<Route path={import.meta.env.BASE_URL+"/about"} component={About} />
<Route default component={NotFound} />
</Router>
</main>
Expand Down

0 comments on commit ee066f9

Please sign in to comment.