mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-18 16:00:41 +00:00
Update ctx-axios.ts
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import axios from 'axios';
|
||||
|
||||
const api = axios.create({
|
||||
baseURL: 'http://127.0.0.1:5670'
|
||||
baseURL: process.env.API_BASE_URL
|
||||
});
|
||||
|
||||
api.defaults.timeout = 10000;
|
||||
@@ -11,4 +11,4 @@ api.interceptors.response.use(
|
||||
err => Promise.reject(err)
|
||||
);
|
||||
|
||||
export default api;
|
||||
export default api;
|
||||
|
Reference in New Issue
Block a user