Skip to content

Commit

Permalink
Merge pull request #31 from ikuchmin/main
Browse files Browse the repository at this point in the history
Add Vite proxy configuration for frontend module
  • Loading branch information
dzencot authored Feb 21, 2024
2 parents d482b68 + 6da4043 commit e871faf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,12 @@ import react from "@vitejs/plugin-react";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
host: true,
proxy: {
'/api': {
target: 'http://localhost:8080',
},
},
},
});

0 comments on commit e871faf

Please sign in to comment.