Skip to content

Commit 204ac30

Browse files
committed
404 issue soln1
1 parent 39ae292 commit 204ac30

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/App.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function RedirectWithState() {
4444
}
4545

4646
return (
47-
<Router>
47+
<Router basename={import.meta.env.BASE_URL}>
4848
<RedirectWithState />
4949
<div className="App">
5050
{/* Pass user status as loggedin prop to Navbar */}

vite.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ import { defineConfig } from 'vite'
22
import react from '@vitejs/plugin-react'
33
// https://vitejs.dev/config/
44
export default defineConfig({
5-
base: '/',
5+
base: 'https://courses.krimsonsquad.tech',
66
plugins: [react()]
77
})

0 commit comments

Comments
 (0)