fix: add localhost:9090 to CORS defaults; revert broken relative-URL and proxy changes

This commit is contained in:
2026-04-09 19:14:40 -04:00
parent 3362325479
commit 29da2a75b3
3 changed files with 2 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
import axios from 'axios';
const api = axios.create({
baseURL: import.meta.env.VITE_API_URL || '/api/v1',
baseURL: import.meta.env.VITE_API_URL || 'http://localhost:8000/api/v1',
});
api.interceptors.request.use((config) => {

View File

@@ -4,12 +4,4 @@ import react from '@vitejs/plugin-react'
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
server: {
proxy: {
'/api': {
target: 'http://localhost:8000',
changeOrigin: true,
},
},
},
})