Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
fix(build): bring back hash routing
Browse files Browse the repository at this point in the history
  • Loading branch information
bucko13 committed Jul 13, 2023
1 parent cd9ed13 commit ed83bf4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/App.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import {
BrowserRouter as Router,
HashRouter as Router,
Route,
Switch,
Redirect,
Expand Down Expand Up @@ -28,7 +28,7 @@ const App = () => (
<CssBaseline />
<div className="App">
<SnackbarProvider maxSnack={3}>
<Router basename="/caravan">
<Router basename="/">
<Container maxWidth={false} sx={{ maxWidth: "1280px" }}>
<Navbar />
<ErrorBoundary>
Expand Down
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { nodePolyfills } from "vite-plugin-node-polyfills";

// https://vitejs.dev/config/
export default defineConfig({
base: "/caravan/",
base: "/caravan/#",
plugins: [
react(),
nodePolyfills({
Expand Down

0 comments on commit ed83bf4

Please sign in to comment.