We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9271ff commit e1059b1Copy full SHA for e1059b1
src/lib/api.js
@@ -1,7 +1,7 @@
1
import axios from "axios";
2
3
const api = axios.create({
4
- baseURL: '/api',
+ baseURL: 'https://biodetect-api.onrender.com',
5
withCredentials: true,
6
crossdomain: true,
7
});
vite.config.js
@@ -4,14 +4,5 @@ import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
- server: {
8
- proxy: {
9
- '/api': {
10
- target: 'https://biodetect-api.onrender.com',
11
- changeOrigin: true,
12
- rewrite: (path) => path.replace(/^\/api/, '')
13
- }
14
15
16
})
17
0 commit comments