|
|
@@ -2,8 +2,8 @@ import axios from 'axios';
|
|
|
|
|
|
// 1. 创建 axios 实例
|
|
|
const api = axios.create({
|
|
|
- // 根据你的环境变量或硬编码地址
|
|
|
- baseURL: process.env.NEXT_PUBLIC_API_URL || 'http://45.137.220.138:8888',
|
|
|
+ // 根据环境变量或默认线上生产地址
|
|
|
+ baseURL: process.env.NEXT_PUBLIC_API_URL || 'https://api.text.skin',
|
|
|
headers: {
|
|
|
'Content-Type': 'application/json',
|
|
|
},
|