Skip to content

Commit

Permalink
Revert "Permito deployment en un subfolder"
Browse files Browse the repository at this point in the history
This reverts commit e7aedc3.
  • Loading branch information
Francisco-Galindo committed Nov 5, 2024
1 parent edacd61 commit 20a2553
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 13 deletions.
52 changes: 40 additions & 12 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,46 @@ import NotFound from "./pages/NotFound";
export default function App() {
return (
<SettingsContextProvider>
<BrowserRouter basename='/drawdb'>
<RestoreScroll />
<Routes>
<Route
path="/"
element={
<ThemedPage>
<Editor />
</ThemedPage>
}/>
</Routes>
</BrowserRouter>
<BrowserRouter>
<RestoreScroll />
<Routes>
<Route path="/" element={<LandingPage />} />
<Route
path="/editor"
element={
<ThemedPage>
<Editor />
</ThemedPage>
}
/>
<Route
path="/survey"
element={
<ThemedPage>
<Survey />
</ThemedPage>
}
/>
<Route
path="/shortcuts"
element={
<ThemedPage>
<Shortcuts />
</ThemedPage>
}
/>
<Route
path="/bug-report"
element={
<ThemedPage>
<BugReport />
</ThemedPage>
}
/>
<Route path="/templates" element={<Templates />} />
<Route path="*" element={<NotFound />} />
</Routes>
</BrowserRouter>
</SettingsContextProvider>
);
}
Expand Down
1 change: 0 additions & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ import react from '@vitejs/plugin-react'

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

0 comments on commit 20a2553

Please sign in to comment.