mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-05-24 18:39:12 +00:00
Permito deployment en un subfolder
This commit is contained in:
parent
35d55a02f1
commit
e7aedc3ecf
34
src/App.jsx
34
src/App.jsx
@ -13,44 +13,16 @@ import NotFound from "./pages/NotFound";
|
|||||||
export default function App() {
|
export default function App() {
|
||||||
return (
|
return (
|
||||||
<SettingsContextProvider>
|
<SettingsContextProvider>
|
||||||
<BrowserRouter>
|
<BrowserRouter basename='/drawdb'>
|
||||||
<RestoreScroll />
|
<RestoreScroll />
|
||||||
<Routes>
|
<Routes>
|
||||||
<Route path="/" element={<LandingPage />} />
|
|
||||||
<Route
|
<Route
|
||||||
path="/editor"
|
path="/"
|
||||||
element={
|
element={
|
||||||
<ThemedPage>
|
<ThemedPage>
|
||||||
<Editor />
|
<Editor />
|
||||||
</ThemedPage>
|
</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>
|
</Routes>
|
||||||
</BrowserRouter>
|
</BrowserRouter>
|
||||||
</SettingsContextProvider>
|
</SettingsContextProvider>
|
||||||
|
@ -3,5 +3,6 @@ import react from '@vitejs/plugin-react'
|
|||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
base: './',
|
||||||
plugins: [react()],
|
plugins: [react()],
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user