Revert "Permito deployment en un subfolder"

This reverts commit e7aedc3ecf.
This commit is contained in:
Francisco-Galindo 2024-11-05 12:57:11 -06:00
parent edacd61cde
commit 20a2553b3d
2 changed files with 40 additions and 13 deletions

View File

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

View File

@ -3,6 +3,5 @@ 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()],
}) })