Skip to content

Commit 5e9f461

Browse files
authored
Part 3b : error in Vite config file extension (vite.config.json instead of vite.config.js)
1 parent dffd792 commit 5e9f461

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/3/en/part3b.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ const baseUrl = '/api/notes'
459459
460460
Because in development mode the frontend is at the address <i>localhost:3000</i>, the requests to the backend go to the wrong address <i>localhost:3000/api/notes</i>. The backend is at <i>localhost:3001</i>.
461461
462-
If the project was created with Vite, this problem is easy to solve. It is enough to add the following declaration to the <i>vite.config.json</i> file of the frontend repository.
462+
If the project was created with Vite, this problem is easy to solve. It is enough to add the following declaration to the <i>vite.config.js</i> file of the frontend repository.
463463
464464
```bash
465465
import { defineConfig } from 'vite'

0 commit comments

Comments
 (0)