Skip to content

Commit

Permalink
fix routes
Browse files Browse the repository at this point in the history
  • Loading branch information
001elijah committed Jun 16, 2023
1 parent 3858000 commit 7c41c78
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "react-homework-template",
"version": "0.1.0",
"private": true,
"homepage": "https://001elijah.github.io/bc48-node-team-project-frontend/welcome",
"homepage": "https://001elijah.github.io/bc48-node-team-project-frontend/",
"dependencies": {
"@reduxjs/toolkit": "^1.9.5",
"@testing-library/jest-dom": "^5.16.3",
Expand Down
4 changes: 2 additions & 2 deletions src/components/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ export const App = () => {
<>
{/* <SharedLayout /> */}
<Routes>
<Route path="/welcome" element={<WelcomePage />} />
<Route path="/" element={<WelcomePage />} />
<Route path="auth/:id" element={<AuthPage />} />

<Route path="/" element={<HomePage />} />
<Route path="/home" element={<HomePage />} />
<Route path="/board" element={<BoardPage />} />

<Route path="*" element={<Navigate to="/" />} />
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import './index.scss';

ReactDOM.createRoot(document.getElementById('root')).render(
<React.StrictMode>
<BrowserRouter basename="/bc48-node-team-project-frontend/welcome">
<BrowserRouter basename="/bc48-node-team-project-frontend">
<App />
</BrowserRouter>
</React.StrictMode>,
Expand Down

0 comments on commit 7c41c78

Please sign in to comment.