This commit is contained in:
hailin 2025-06-14 13:41:26 +08:00
parent cd27d50fb3
commit 9052ee0da3
1 changed files with 2 additions and 1 deletions

View File

@ -31,7 +31,8 @@
// } as any;
import { getRuntimeEnv } from "./ipconfig";
import { getRuntimeEnv } from "@/lib/ipconfig";
export async function getAxiosConfig() {
const ip = await getRuntimeEnv("SUPABASE_URL"); // 直接用你 lib/ipconfig 里的方法
if (!ip) throw new Error("SUPABASE_URL 获取失败,无法构建 axios 配置");