1 parent 7168145 commit 92fd878Copy full SHA for 92fd878
2 files changed
README.md
@@ -54,14 +54,6 @@ cd api_users
54
npm install
55
```
56
57
-### Configuration
58
-
59
-Create `.env` in `api_users/`:
60
-```env
61
-MONGODB_URI=mongodb://localhost:27017/usersdb
62
-PORT=3000
63
-```
64
65
### Running
66
67
```bash
src/main.jsx
@@ -5,9 +5,11 @@ import './index.css'
5
import Home from './pages/Home'
6
import About from './pages/About'
7
8
+const basename = import.meta.env.BASE_URL
9
+
10
createRoot(document.getElementById('root')).render(
11
<StrictMode>
- <BrowserRouter>
12
+ <BrowserRouter basename={basename}>
13
<Routes>
14
<Route path='/' element={<Home />} />
15
<Route path='/about' element={<About />} />
0 commit comments