Fix: corrigir tela branca de conexão no Realtime
This commit is contained in:
parent
c364e81f3b
commit
c3c0ede8f0
|
|
@ -12,10 +12,17 @@
|
|||
// Detecta se está configurado (sempre true no self-hosted)
|
||||
export const isSupabaseConfigured = () => true;
|
||||
|
||||
// Objeto dummy para compatibilidade com imports legados
|
||||
export const supabase = {
|
||||
from: () => { throw new Error('Self-Hosted: Use as funções HTTP em vez de supabase.from()'); },
|
||||
storage: { from: () => { throw new Error('Self-Hosted: Use as funções de upload HTTP'); } },
|
||||
channel: () => {
|
||||
const mockChannel = {
|
||||
on: () => mockChannel,
|
||||
subscribe: (cb: any) => { if(cb) cb('SUBSCRIBED'); return mockChannel; }
|
||||
};
|
||||
return mockChannel;
|
||||
},
|
||||
removeChannel: () => {},
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue