Skip to content

Commit b0e80de

Browse files
committed
Update vite.config.ts
1 parent 3bef9ef commit b0e80de

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

MyApp.Client/vite.config.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,6 @@ const DEPLOY_API = process.env.KAMAL_DEPLOY_HOST
1717
// Now use it for API_URL
1818
const API_URL = isProd ? DEPLOY_API : (buildLocal ? '' : target)
1919

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-
2820
export default defineConfig({
2921
define: { apiBaseUrl: `"${API_URL}"` },
3022
plugins: [
@@ -42,6 +34,5 @@ export default defineConfig({
4234
server: {
4335
host: true, // Listen on all interfaces (both IPv4 and IPv6)
4436
open: false,
45-
proxy,
4637
}
4738
})

0 commit comments

Comments
 (0)