Skip to content

Commit

Permalink
Merge pull request #1760 from gmh5225/fix-windows
Browse files Browse the repository at this point in the history
fix(client): improve Windows compatibility for Vite dev server
  • Loading branch information
shakkernerd authored Jan 3, 2025
2 parents 8a5aef5 + a3eb07e commit 5117c7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ export default defineConfig({
},
},
server: {
host: true,
proxy: {
"/api": {
target: `http://localhost:${process.env.SERVER_PORT || 3000}`,
target: `http://127.0.0.1:${process.env.SERVER_PORT || 3000}`,
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ""),
},
Expand Down

0 comments on commit 5117c7a

Please sign in to comment.