Permito deployment en un subfolder

This commit is contained in:
Francisco-Galindo 2024-11-05 12:17:11 -06:00
parent 35d55a02f1
commit e7aedc3ecf
2 changed files with 13 additions and 40 deletions

View File

@ -13,46 +13,18 @@ import NotFound from "./pages/NotFound";
export default function App() {
return (
<SettingsContextProvider>
<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>
<BrowserRouter basename='/drawdb'>
<RestoreScroll />
<Routes>
<Route
path="/"
element={
<ThemedPage>
<Editor />
</ThemedPage>
}/>
</Routes>
</BrowserRouter>
</SettingsContextProvider>
);
}

View File

@ -3,5 +3,6 @@ import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
base: './',
plugins: [react()],
})