解决登录显示、首页显示bug
This commit is contained in:
@@ -1,6 +1,19 @@
|
||||
// /components/supadb/aksupainstance.uts
|
||||
import { createClient } from './aksupa.uts'
|
||||
import { SUPA_URL, SUPA_KEY } from '@/ak/config.uts'
|
||||
import { CURRENT_CLIENT } from '@/config/current-client.uts'
|
||||
|
||||
function maskClientKey(key: string): string {
|
||||
const keyLen = key.length
|
||||
if (keyLen <= 20) {
|
||||
return '(too short)'
|
||||
}
|
||||
return key.substring(0, 10) + '...' + key.substring(keyLen - 8)
|
||||
}
|
||||
|
||||
console.log('[consumer-db] 当前端类型:', CURRENT_CLIENT)
|
||||
console.log('[consumer-db] supabaseUrl 已加载:', SUPA_URL)
|
||||
console.log('[consumer-db] supabaseKey 已加载:', maskClientKey(SUPA_KEY))
|
||||
|
||||
// 创建单一真实的 Supabase 客户端实例 (使用 config.uts 配置)
|
||||
// Create single source of truth client using config
|
||||
|
||||
Reference in New Issue
Block a user