mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-05-24 18:39:12 +00:00
Revert "Permito deployment en un subfolder"
This reverts commit e7aedc3ecf
.
This commit is contained in:
parent
edacd61cde
commit
20a2553b3d
52
src/App.jsx
52
src/App.jsx
@ -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>
|
||||
);
|
||||
}
|
||||
|
@ -3,6 +3,5 @@ import react from '@vitejs/plugin-react'
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
base: './',
|
||||
plugins: [react()],
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user