Skip to content

Commit

Permalink
modify router base
Browse files Browse the repository at this point in the history
  • Loading branch information
LiranCohen committed Sep 25, 2024
1 parent f6528ee commit 94fd09f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { Web5Provider } from "@/web5/Web5Provider";
export const App = () => {
const isDesktop = useMediaQuery("(min-width: 768px)");
return (
<Router>
<Router basename="/dwa-demo">
<ThemeProvider defaultTheme="dark" storageKey="vite-ui-theme">
<Web5Provider>
<div className="flex md:min-h-screen">
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import react from "@vitejs/plugin-react";

// https://vitejs.dev/config/
export default defineConfig({
base: 'https://tbd54566975.github.io/dwa-demo/',
base: '/dwa-demo/',
define: {
global: "globalThis",
},
Expand Down

0 comments on commit 94fd09f

Please sign in to comment.