From ed83bf4b6765294180ea96b11898cb1a42adfc42 Mon Sep 17 00:00:00 2001 From: buck Date: Wed, 12 Jul 2023 23:10:35 -0500 Subject: [PATCH] fix(build): bring back hash routing --- src/components/App.jsx | 4 ++-- vite.config.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/App.jsx b/src/components/App.jsx index 29090a32..10fda278 100644 --- a/src/components/App.jsx +++ b/src/components/App.jsx @@ -1,6 +1,6 @@ import React from "react"; import { - BrowserRouter as Router, + HashRouter as Router, Route, Switch, Redirect, @@ -28,7 +28,7 @@ const App = () => (
- + diff --git a/vite.config.js b/vite.config.js index 71a76ce1..dd80654f 100644 --- a/vite.config.js +++ b/vite.config.js @@ -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({