Skip to content

Commit

Permalink
add configure changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Victoria-Fedkova committed Sep 23, 2023
1 parent a06d93b commit 8f621fe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function App() {
<Route path="/" element={<SharedLayout />}>
<Route index element={<MainPage />} />
<Route path="catalog/*" element={<CarsPage />} />
<Route path="favorites" element={<FavouritePage />} />
<Route path="favorites/*" element={<FavouritePage />} />
<Route path="*" element={<NotFound />} />
</Route>
</Routes>
Expand Down
6 changes: 3 additions & 3 deletions src/main.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import { BrowserRouter } from 'react-router-dom';
import { HashRouter } from 'react-router-dom';
import { Provider } from 'react-redux';
import { PersistGate } from 'redux-persist/integration/react';

Expand All @@ -13,10 +13,10 @@ ReactDOM.createRoot(document.getElementById('root')).render(
<React.StrictMode>
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<BrowserRouter basename="/wheels4rent">
<HashRouter basename="/wheels4rent">
<GlobalStyle />
<App />
</BrowserRouter>
</HashRouter>
</PersistGate>
</Provider>
</React.StrictMode>
Expand Down
3 changes: 2 additions & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";

export default defineConfig({
base: "/",
base: "/wheels4rent/",

plugins: [react()],
});

0 comments on commit 8f621fe

Please sign in to comment.