fix: resolve CORS blocking Vite dev server (add 5173 to defaults, add proxy)

This commit is contained in:
2026-04-09 19:10:10 -04:00
parent 34a57d6f09
commit 3362325479
3 changed files with 10 additions and 2 deletions

View File

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