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 3bef9ef commit b0e80deCopy full SHA for b0e80de
MyApp.Client/vite.config.ts
@@ -17,14 +17,6 @@ const DEPLOY_API = process.env.KAMAL_DEPLOY_HOST
17
// Now use it for API_URL
18
const API_URL = isProd ? DEPLOY_API : (buildLocal ? '' : target)
19
20
-// Only required if accessing vite directly, e.g. http://localhost:5173
21
-const proxy = {
22
- '^/api': {
23
- target,
24
- secure: false
25
- }
26
-}
27
-
28
export default defineConfig({
29
define: { apiBaseUrl: `"${API_URL}"` },
30
plugins: [
@@ -42,6 +34,5 @@ export default defineConfig({
42
34
server: {
43
35
host: true, // Listen on all interfaces (both IPv4 and IPv6)
44
36
open: false,
45
- proxy,
46
37
}
47
38
})
0 commit comments