Skip to content

Commit

Permalink
Update code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ratangulati committed Jul 2, 2024
1 parent f569eeb commit a9c4954
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 17 deletions.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}
}(window.location))
</script>
<script type="module" crossorigin src="/ratangulati/assets/index-Ba99ZtIc.js"></script>
<script type="module" crossorigin src="/ratangulati/assets/index-B-Z8_h-M.js"></script>
<link rel="stylesheet" crossorigin href="/ratangulati/assets/index-BiDtGbFp.css">
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="./public/hacker.png" />
<link rel="icon" type="image/png" href="/hacker.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Ratan Gulati</title>
<script type="text/javascript">
Expand Down
6 changes: 4 additions & 2 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ const About = React.lazy(() => import('./components/About'));
const Contact = React.lazy(() => import('./components/Contact'));

const App = () => {
const basename = process.env.NODE_ENV === 'production' ? '/ratangulati' : '/';

return (
<HashRouter basename="/ratangulati">
<HashRouter basename={basename}>
<Navbar />
<Suspense fallback={<Loading />}>
<Routes>
Expand All @@ -28,4 +30,4 @@ const App = () => {
);
}

export default App;
export default App;
5 changes: 1 addition & 4 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,8 @@ export default defineConfig({
optimizeDeps: {
include: ['fast-simplex-noise']
},
base: '/ratangulati/',
base: process.env.NODE_ENV === 'production' ? '/ratangulati/' : '/',
build: {
outDir: 'dist',
rollupOptions: {
external: ['react-router-dom']
}
}
})

0 comments on commit a9c4954

Please sign in to comment.