We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e210598 commit ca93ed8Copy full SHA for ca93ed8
MyApp.Client/vite.config.ts
@@ -30,18 +30,6 @@ const DEPLOY_API = process.env.KAMAL_DEPLOY_HOST
30
// Now use it for API_URL
31
const API_URL = isProd ? DEPLOY_API : (buildLocal ? '' : target)
32
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
41
42
- }
43
-}
44
-
45
export default defineConfig({
46
define: { apiBaseUrl: `"${API_URL}"` },
47
plugins: [
@@ -83,7 +71,6 @@ export default defineConfig({
83
71
},
84
72
server: {
85
73
host: true, // Listen on all interfaces (both IPv4 and IPv6)
86
- proxy,
87
74
open: false,
88
75
}
89
76
})
0 commit comments