Skip to content

Commit

Permalink
fix base name
Browse files Browse the repository at this point in the history
  • Loading branch information
RuiChen committed Sep 5, 2024
1 parent 78ad402 commit 25a2c8d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "fabrik-example",
"homepage": "https://ruichen0101.github.io/fabrik-example/",
"private": true,
"version": "0.0.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion src/router/Router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const FullBody = withSuspense(lazy(() => import('../3d/FullBody')));
class Router extends Component {
render(): ReactNode {
return (
<BrowserRouter>
<BrowserRouter basename="/fabrik-example">
<Routes>
<Route path="2d" element={<TwoDimension />}>
<Route path="single-end" element={<SingleEnd2D />} />
Expand Down
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ import react from '@vitejs/plugin-react'

// https://vitejs.dev/config/
export default defineConfig({
base: '/fabrik-example',
plugins: [react()],
})

0 comments on commit 25a2c8d

Please sign in to comment.