feat: 上传缺失文件

This commit is contained in:
hzm
2026-02-06 17:41:04 +08:00
parent bc0eca66f4
commit 30f34d2cff

17
app/lib/supabase.js Normal file
View File

@@ -0,0 +1,17 @@
import { createClient } from '@supabase/supabase-js';
// Supabase 配置
// 注意:此处使用 publishable key可安全在客户端使用
const supabaseUrl = 'https://mouvsqlmgymsaxikvqsh.supabase.co/auth/v1/otp';
const supabaseAnonKey = 'sb_publishable_c5f58knbVz8UgOh6L88MUQ_p9j8c1Q-';
export const supabase = createClient(supabaseUrl, supabaseAnonKey, {
auth: {
// 启用自动刷新 token
autoRefreshToken: true,
// 持久化 session 到 localStorage
persistSession: true,
// 检测 URL 中的 session用于邮箱验证回调
detectSessionInUrl: true
}
});