RetronAIRetronAI
SuporteAbrir RetronAI
Conexões / Base de dados
Supabase logo

Conectando Supabase

Connect Supabase para banco de dados, autenticação, armazenamento e recursos em tempo real.

Supabase OAuthVerificação de conexão suportada
Nesta páginaConnect with SupabaseExisting manual connectionsEscolha Previsão e ProduçãoConstrua uma função de trabalhoVerifique a integraçãoResolução de problemasGuia relacionada

Translation pending: This updated guide is shown in English until its translation is refreshed.

Connect with Supabase

New workspace connections use OAuth. A workspace owner or admin authorizes RetronAI, selects an accessible Supabase project, and names the connection. No database password or manually copied API keys are required.

  1. Open workspace Settings → Connectors → Supabase → Add connection.
  2. Choose Connect with Supabase and authorize access.
  3. Select an accessible Supabase project and name the connection.
  4. Save it, then assign it to the intended project environment.

RetronAI checks database authorization before allowing schema migrations. OAuth authorization does not automatically create your application's sign-in screens, storage policies, or realtime subscriptions; build and test those features explicitly.

Existing manual connections

Existing manual connections remain supported. Authorized administrators can inspect configuration, update credentials, validate, revoke, and delete them. Manual creation is unavailable for new workspace connections. Once deleted, use OAuth to create a replacement.

API keys provide application API access; SQL migrations require database authorization. Keep secret keys and database credentials in the protected connection form, never in chat or client code.

Choose Preview and Production

A workspace connection is reusable. Creating it does not automatically wire it into every app.

  1. Open the project and go to Settings → Connectors.
  2. Select the Preview environment and assign the Supabase connection intended for testing.
  3. Review the available access controls. For databases, choose whether the app may read data, write data, or manage structure.
  4. When preparing to publish, configure Production separately. Confirm the provider account and resource before selecting the live connection.

Shared resources: Using the same provider resource in both environments means tests can affect the same external data. Different environment selections do not create separate provider resources for you. See project connections for the full binding workflow.

Build a working feature

Once the connection is assigned, ask RetronAI to use it for a specific behavior. Include the resource, expected result, and failure behavior. For example:

Exemplo de prompt
Connect my task board to Supabase. Store tasks persistently, require sign-in, and ensure each user only sees their own tasks. Explain any database changes before applying them.

Review the resulting app in Preview. Connecting credentials is a setup step; it does not by itself add screens, server routes, permissions, or event handlers to your app.

Verify the integration

Create a task, reload, then sign in as a second test user. Confirm persistence and that the second user cannot read the first user’s tasks.

RetronAI supports a provider connection check for this connector. Passing that check confirms the checked credentials or connection are usable; it does not test every resource permission or the complete feature you built.

Before publishing, repeat the relevant checks with the intended Production configuration. Confirm error messages do not reveal credentials and that private data remains protected by the app’s authorization rules.

Troubleshooting

If database browsing is unavailable, check that the connection includes database access and that project permissions allow it. For API access errors, inspect the project URL, key type, and table access policies.

If the feature still uses the wrong resource, check the project environment and assigned connection first. Updating a workspace connection affects projects that use it; review those bindings before replacing credentials. If a credential was rotated at the provider, update the saved connection and retest the feature.

Explore outro serviçoTodos os conectores guia
Construa ideias além do protótipo.RetronAI

Comece a explorar

Primeiros passosTipos de aplicativos e disponibilidadeConstrua uma aplicação web completa hoje e entenda quais tipos de projetos estão chegando.Primeiros passosConstrua sua primeira appDe uma ideia para uma previsão de trabalho, então prepare o seu primeiro lançamento.Primeiros passosCrie uma contaInscreva-se, complete a navegação e encontre o seu espaço de trabalho.Primeiros passosO seu espaço de trabalho do projetoEncontre o chat, a previsão, o código, os detalhes de construção e as configurações do projeto.Estúdio de projetosEscrever prompts úteisDê ao RetronAI o contexto que ele precisa e faça as mudanças mais fáceis de revisar.Estúdio de projetosEscolher um modo de geraçãoBalança a capacidade de um edifício com o seu uso de crédito.Estúdio de projetosConstrua progressos e aprovaçõesCompreender estágios de construção, perguntas, aprovações e recuperação.Estúdio de projetosPrevisão e teste a sua aplicaçãoVerifique sua aplicação antes de compartilhá-la ou publicá-la.Estúdio de projetosFaça edição visualRefinem texto, imagens, espaços e estilos diretamente na sua previsão.Estúdio de projetosExplore e edite o códigoBrowse arquivos de origem, compare projetos e atualize sua previsão.Estúdio de projetosVersões e rollbackRevisão salvou snapshots e entender o que restaura uma versão mudança.Conexões e acesso ao appConectividade de espaço de trabalhoCrie conexões de serviço reutilizáveis para projetos em seu espaço de trabalho.