Skip to content

Commit

Permalink
Bruk base path i router
Browse files Browse the repository at this point in the history
For å støtte base paths i gh pages bl.a
  • Loading branch information
LudvigHz committed Jan 24, 2025
1 parent e96a424 commit f5e0dc6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ export function createRouter({ Wrap }: { Wrap?: ({ children }: PropsWithChildren
},
defaultPreload: 'intent',
history,
Wrap
Wrap,
basepath: import.meta.env.BASE_URL
});
}

Expand Down

0 comments on commit f5e0dc6

Please sign in to comment.