SupabaseS
Supabase7mo ago
h8h

How to use Supabase queue in localhost?

I tried to use Supabase queue in my localhost for a Next.js project.

I'm pretty sure that I followed all the necessary configs for Supabase queue, everything from this section https://supabase.com/docs/guides/queues/quickstart#expose-queues-to-client-side-consumers:
  • Expose Queues via PostgREST
  • Enable RLS on your tables in pgmq schema
  • Grant permissions to pgmq_public database functions
I also exposed the pgmq_public by adding it in this config https://supabase.com/docs/guides/local-development/cli/config#api.schemas

api
  schemas: ["public", "graphql_public", "pgmq_public"]


But when I tried to enqueue something, I always got error: The schema must be one of the following: public, graphql_public.

Is it because supabase queue just does not work with localhost yet (so I can stop trying that)? Or because I still missed some configs? It's really frustrated just to make this working.
Thanks
image.png
Learn how to use Supabase Queues to add and read messages
Was this page helpful?