This commit is contained in:
hailin 2025-06-15 12:48:24 +08:00
parent d49a5a3bea
commit 5c65849ded
3 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ type Props = {
// 推荐用法async 获取
export async function getBaseUrl() {
const ip = await getRuntimeEnv("SUPABASE_URL");
let ip = await getRuntimeEnv("SUPABASE_URL");
if (!ip) throw new Error("SUPABASE_URL 获取失败,无法构建 baseUrl");
// 判断协议

View File

@ -19,7 +19,7 @@ export const runtime = "nodejs";
// 推荐用法async 获取
export async function getBaseUrl() {
const ip = await getRuntimeEnv("SUPABASE_URL");
let ip = await getRuntimeEnv("SUPABASE_URL");
if (!ip) throw new Error("SUPABASE_URL 获取失败,无法构建 baseUrl");
// 判断协议

View File

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