This commit is contained in:
parent
5c413f4af5
commit
dd3dff9543
|
|
@ -37,7 +37,7 @@ export async function getAxiosConfig() {
|
||||||
const ip = await getRuntimeEnv("SUPABASE_URL"); // 直接用你 lib/ipconfig 里的方法
|
const ip = await getRuntimeEnv("SUPABASE_URL"); // 直接用你 lib/ipconfig 里的方法
|
||||||
if (!ip) throw new Error("SUPABASE_URL 获取失败,无法构建 axios 配置");
|
if (!ip) throw new Error("SUPABASE_URL 获取失败,无法构建 axios 配置");
|
||||||
return {
|
return {
|
||||||
baseURL: `http://${ip}:80`, // 端口如需动态可再加参数
|
baseURL: `http://${ip}:3008`, // 端口如需动态可再加参数
|
||||||
method: 'post',
|
method: 'post',
|
||||||
timeout: 60 * 1000,
|
timeout: 60 * 1000,
|
||||||
headers: { 'Content-Type': 'application/json; charset=UTF-8' },
|
headers: { 'Content-Type': 'application/json; charset=UTF-8' },
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue