Skip to content

Commit ca93ed8

Browse files
committed
remove unnecessary proxy
1 parent e210598 commit ca93ed8

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

MyApp.Client/vite.config.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,6 @@ const DEPLOY_API = process.env.KAMAL_DEPLOY_HOST
3030
// Now use it for API_URL
3131
const API_URL = isProd ? DEPLOY_API : (buildLocal ? '' : target)
3232

33-
// Only required if accessing vite directly, e.g. http://localhost:5173
34-
const proxy = {
35-
'^/api': {
36-
target,
37-
secure: false
38-
},
39-
'^/metadata': {
40-
target,
41-
secure: false
42-
}
43-
}
44-
4533
export default defineConfig({
4634
define: { apiBaseUrl: `"${API_URL}"` },
4735
plugins: [
@@ -83,7 +71,6 @@ export default defineConfig({
8371
},
8472
server: {
8573
host: true, // Listen on all interfaces (both IPv4 and IPv6)
86-
proxy,
8774
open: false,
8875
}
8976
})

0 commit comments

Comments
 (0)