Skip to content

Commit

Permalink
🔧 Fix: Update configuration for GitHub Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
debojit16mitra committed Dec 24, 2024
1 parent 5269d17 commit 76ccab4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ jobs:
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './dist'
path: 'dist'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v4
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
<script type="module" src="./src/main.jsx"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion src/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { BrowserRouter } from "react-router-dom";

ReactDOM.createRoot(document.getElementById("root")).render(
<React.StrictMode>
<BrowserRouter basename="/">
<BrowserRouter basename="/debojit-mitra.github.io">
<App />
</BrowserRouter>
</React.StrictMode>
Expand Down
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";

export default defineConfig({
base: "/", // Add this line
base: "/debojit-mitra.github.io/", // Add this line
plugins: [react()],
});

Expand Down

0 comments on commit 76ccab4

Please sign in to comment.