Skip to content

Commit

Permalink
corrected error
Browse files Browse the repository at this point in the history
Signed-off-by: Ratan Gulati <[email protected]>
  • Loading branch information
Ratangulati committed Jul 2, 2024
1 parent 7ed0c4e commit c399e8b
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 4 deletions.
42 changes: 42 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-icons": "^5.2.1",
"react-router-dom": "^6.24.0",
"react-vertical-timeline-component": "^3.6.0"
},
"devDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { Suspense } from 'react';
import { BrowserRouter, Routes, Route } from 'react-router-dom';
import { HashRouter, Routes, Route } from 'react-router-dom';
import Navbar from './components/Navbar';
import Footer from './components/Footer';
import Loading from './components/Loading';
Expand All @@ -12,7 +12,7 @@ const Contact = React.lazy(() => import('./components/Contact'));

const App = () => {
return (
<BrowserRouter basename="/ratangulati">
<HashRouter basename="/ratangulati">
<Navbar />
<Suspense fallback={<Loading />}>
<Routes>
Expand All @@ -24,7 +24,7 @@ const App = () => {
</Routes>
</Suspense>
{/* <Footer /> */}
</BrowserRouter>
</HashRouter>
);
}

Expand Down
7 changes: 6 additions & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,10 @@ export default defineConfig({
optimizeDeps: {
include: ['fast-simplex-noise']
},
base: '/ratangulati/'
base: '/ratangulati/',
build: {
rollupOptions: {
external: ['react-router-dom']
}
}
})

0 comments on commit c399e8b

Please sign in to comment.