Skip to content

Commit

Permalink
fix: Also proxy URLs starting with @ for Vite itself
Browse files Browse the repository at this point in the history
  • Loading branch information
wimdeblauwe committed Oct 15, 2024
1 parent 228b125 commit 10a1f62
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export default defineConfig({
server: {
proxy: {
// Proxy all backend requests to Spring Boot except for static assets
'^/(?!static|assets|.*\\\\.(js|css|png|svg|jpg|jpeg|gif|ico|woff|woff2)$)': {
'^/(?!static|assets|@|.*\\\\.(js|css|png|svg|jpg|jpeg|gif|ico|woff|woff2)$)': {
target: 'http://localhost:8080', // Proxy to Spring Boot backend
changeOrigin: true,
secure: false
Expand Down

0 comments on commit 10a1f62

Please sign in to comment.