chore: configure dev ports (backend:3001, frontend:3000 + proxy)

This commit is contained in:
2026-07-02 14:04:26 +08:00
parent 03441efe45
commit 1b19904e77
3 changed files with 12 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
import axios from 'axios';
const api = axios.create({
baseURL: import.meta.env.PROD ? '/api' : `http://localhost:${import.meta.env.VITE_API_PORT || 3002}/api`,
baseURL: '/api',
timeout: 10000,
});