Skip to content

Commit e871faf

Browse files
authored
Merge pull request #31 from ikuchmin/main
Add Vite proxy configuration for frontend module
2 parents d482b68 + 6da4043 commit e871faf

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

frontend/vite.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,12 @@ import react from "@vitejs/plugin-react";
44
// https://vitejs.dev/config/
55
export default defineConfig({
66
plugins: [react()],
7+
server: {
8+
host: true,
9+
proxy: {
10+
'/api': {
11+
target: 'http://localhost:8080',
12+
},
13+
},
14+
},
715
});

0 commit comments

Comments
 (0)