Skip to content

Commit c01a7cc

Browse files
committed
Update vite config
1 parent 30b8850 commit c01a7cc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

frontend/vite.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ export default defineConfig({
1313
},
1414
server: {
1515
host: true,
16-
port: 8080
16+
port: 8080,
17+
proxy: {
18+
"/api": {
19+
target: "http://backend:3000/",
20+
rewrite: (path) => path.replace(/^\/api/, ""),
21+
},
22+
},
1723
}
1824
})

0 commit comments

Comments
 (0)