Skip to content

Commit e1059b1

Browse files
committed
remove proxy from config
1 parent d9271ff commit e1059b1

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

src/lib/api.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import axios from "axios";
22

33
const api = axios.create({
4-
baseURL: '/api',
4+
baseURL: 'https://biodetect-api.onrender.com',
55
withCredentials: true,
66
crossdomain: true,
77
});

vite.config.js

-9
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,5 @@ import react from '@vitejs/plugin-react'
44
// https://vitejs.dev/config/
55
export default defineConfig({
66
plugins: [react()],
7-
server: {
8-
proxy: {
9-
'/api': {
10-
target: 'https://biodetect-api.onrender.com',
11-
changeOrigin: true,
12-
rewrite: (path) => path.replace(/^\/api/, '')
13-
}
14-
}
15-
}
167
})
178

0 commit comments

Comments
 (0)