Skip to content

Commit

Permalink
Define base path for assets
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmeurbi committed Jun 14, 2024
1 parent 596812d commit 30dcee7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import theme from './theme'

export default function App() {
return(
<BrowserRouter>
<BrowserRouter basename='/website2.0'>
<ThemeProvider theme={theme}>
<Router/>
</ThemeProvider>
Expand Down
7 changes: 7 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

export default defineConfig({
base: '/website2.0/',
plugins: [react()],
});

0 comments on commit 30dcee7

Please sign in to comment.