Supabase

S

Supabase

Join the community to ask questions about Supabase and get answers from other members.

Join

Can't Generate TypeScript Type with New API Keys

Hello, when I try to generate TypeScript types using the CLI (npx supabase gen types typescript --project-id "PROJECT_ID" --schema public > src/types/database.types.ts) or in the API Docs > Instruction > Generate and download types it throws the following error: ```bash failed to retrieve generated types: {"message":"{"message":"Legacy API keys are disabled","hint":"Your legacy API keys (anon, service_role) were disabled on 2025-07-31T14:41:06.927252+00:00. Re-enable them in the Supabase dashboard, or use the new publishable and secret API keys."}"}
Try rerunning the command with --debug to troubleshoot the error....

📧🔥 Help Needed: Supabase project not using custom templates

Hello, I have a FREE Supabase account with two projects. Both projects have their own custom email templates for every type (Confirm signup, Invite user, Magic Link, Change Email Address, Reset Password, Reauthentication). The templates have been saved for a month, and their HTML code is nearly identical (only the content and styles differ). Both projects have their own functioning SMTP, and all other settings are exactly the same. ✅ One project sends emails correctly using its custom templates. The second project, however, sends the default Supabase emails, as if its personalized templates don't exist....
No description

moving minimal chat app to supabase

Hi, I'm porting my minimal self hosted express chat application to supabase and I'm facing a lot of confusion. I understand that the client receives an anonymous key, authorizes and receives a JWT using the anonymous authentication key. Then it can listen to "INSERT" events in the postgressql database and it can "INSERT" too. But I don't want the key to insert whatever; it has to be done using its own username (not spoofing someone elses) and I might not want it to receive all the "INSERT" events that happen on the database. On my selfhosted express app, this was simple enough because the server handled WebSocket events. For some context, here is ALL my server code, attached to this post....

Migration File Clean Up on Remote

I started with a remote version and want to start doing local development. I used the MCP to help make edits and I have lots of migration files that have been applied. I can't connect to local cause there are migration issues. Is there a recommended way to clean up my migration history so i can just start with what my remote project currently has?...

environment on supabase.

I have a project on supabase with edge functions, but i need separete database this project. I need this edge functions connect differents databases. Is this possible?

Custom Access Tokens for MCP

we are thinking of building a agent that searches through our BD through the supabase mcp to do data analysis for our customers. Since its customer facing we want to enable RLS or read controls on what data it can read. I noticed that supabase does not offer custom access token or restricing view prevaliages right now. jsut dowong if this is in the works or any workarounds we can do? Thank you!!!...

Supabase sending email confirmation with Confirm Email option set to off

Supabase sending email confirmation with Confirm Email option set to off

Logging Into Console I see "connect ECONNREFUSED"

All of a sudden, I'm seeing this message "Failed to load schemas Error: connect ECONNREFUSED" across my supabase console. I'm on the free tier with just a little bit of data in order to develop but I'm running into this issue that blocks my ability to iterate. I've reached out to support but they aren't responding because I'm still on the free tier. Has anyone seen this? know how to resolve?...
No description

Verifying users created in Supabase before they themselves sign up

Hi all, I have a use case where existing, registered & verified users create contacts. Each contact has an email address, and, obviously, I want to convert the contacts into verified users. So, when a user creates a contact and gives me an email address, I actually create a new Supabase user (via createUser) & app user record for that contact by email address, unless they already exist, and then the creating user's contact record simply references the contact's app user record by id (which i...

Inbucket - Mailpit - Local development

Hi, I am trying to test my auth flow locally but I am unable to actually receive emails in mailpit. Docker and mailpit are running CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 22c3e520db8c public.ecr.aws/supabase/mailpit:v1.22.3 "/mailpit" 31 seconds ago Up 31 seconds (healthy) 1025/tcp, 1110/tcp, 0.0.0.0:54324->8025/tcp supabase_inbucket_testpro ...

views folder

as views are idempotent. is there a method to have views in a separate folder rather than to have them define in migrations? would also make tracking changes using git easier.

[SOLVED] Nuxt App - Your project's URL and Key are required to create a Supabase client!

Hey, So I made a Nuxt App with Supabase as backend. It works totally fine when using bun run dev Now I dockerized that App and set the Environment Variables as following...

SQL Editor

Is it possible to run code in the sql edit that just replace the entire database?

Can't reach supabase.com (ERR_CONNECTION_TIMED_OUT) from Prague, CZ

Hi everyone!
Since today I can’t open https://supabase.com or https://supabase.com/dashboard — Chrome and Firefox both return ERR_CONNECTION_TIMED_OUT. What I tried ...

Can I access a table in a schema that is not exposed through a query

I want to access a table in a schema that is not exposed. Can I do that by creating a public session and then .schema(private) ?

Tiger DB

Any shot Tiger DB (Timescale DB) doesn't get thrown off the platform in the future?
No description

Switch to new database created

How can I switch to the new database that I have created in the UI of supabase using the SQL query
CREATE DATABASE LEARNING;
CREATE DATABASE LEARNING;
...

Use stripe-sync-engine with SSL

Hey folks, it seems like it's not possible to use stripe-sync-engine with SSL, at least there is no way to configure server certificates. Am I overlooking something?...

How to Mock Third-Party APIs in Supabase Edge Function Integration Tests?

My edge functions call third-party APIs like Stripe and Resend. For integration tests, I don’t want to hit real services—I need to mock or intercept these calls and control their responses. Supabase recommends using client.functions.invoke() for testing, but since edge functions run in isolated processes, I can’t mock dependencies at runtime. The best workaround I’ve found is to use dependency injection and an environment variable (e.g., ENV=test) to swap in fake SDKs, but this approach doesn’t allow me to tailor third-party responses for individual tests. ...