Point the Vite dev proxy at the API's default port, 3001
It pointed at 5173, Vite's own port, so a plain pnpm dev in both directories never reached the API. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
8958737b63
commit
1c94ffb281
1 changed files with 2 additions and 2 deletions
|
|
@ -14,14 +14,14 @@ export default defineConfig({
|
||||||
server: {
|
server: {
|
||||||
proxy: {
|
proxy: {
|
||||||
"/api": {
|
"/api": {
|
||||||
target: "http://127.0.0.1:5173",
|
target: "http://127.0.0.1:3001",
|
||||||
changeOrigin: false,
|
changeOrigin: false,
|
||||||
xfwd: true,
|
xfwd: true,
|
||||||
},
|
},
|
||||||
// Uploaded images. nginx serves these in production; in dev
|
// Uploaded images. nginx serves these in production; in dev
|
||||||
// the API does, so they go to the same place as /api.
|
// the API does, so they go to the same place as /api.
|
||||||
"/uploads": {
|
"/uploads": {
|
||||||
target: "http://127.0.0.1:5173",
|
target: "http://127.0.0.1:3001",
|
||||||
changeOrigin: false,
|
changeOrigin: false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue