We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fea2974 commit 2b0beecCopy full SHA for 2b0beec
1 file changed
client/src/api/index.js
@@ -4,7 +4,7 @@ const API_URL = import.meta.env.VITE_API_URL || 'http://localhost:3000/api';
4
5
// 创建axios实例
6
const api = axios.create({
7
- baseURL: API_URL,
+ baseURL: '/api',
8
headers: {
9
'Content-Type': 'application/json'
10
}
0 commit comments