Dynamically exposing custom schemas to API
I'm building a multi-tenant application where each tenant has their own schema. I've set up a function for creating the schema, granting schema permissions to authenticated, service_role & creating a seeded table with RLS enabled (https://supabase.com/docs/guides/api/using-custom-schemas).
The issue I'm running into is that I still need to manually add the created schema to Exposed Schemas in API settings each time, otherwise it's not accessible through the JS client (error message: The schema must be one of the following:...).
Is there any workaround to be able to dynamically add exposed schemas?
The issue I'm running into is that I still need to manually add the created schema to Exposed Schemas in API settings each time, otherwise it's not accessible through the JS client (error message: The schema must be one of the following:...).
Is there any workaround to be able to dynamically add exposed schemas?