Why is the schema restriction implimented in supab...
# ideas-and-suggestions
g
Why is the schema restriction implimented in supabase-js, this seems like an unessesery limitation. This stops us from having miltiple schemas in a self hosted supabase instance. Unless thats the goal. I believe this could be achived via supabase cloud, instead of the client.
g
You can access multiple schemas with Supabase-js but as documented you have to reinitialize the code. In this issue I discuss two ways around that and two SB employees discuss some future ways to do it and changes coming allowing multiple schemas in a single request. https://github.com/supabase/postgrest-js/issues/280#issuecomment-1152758870
d
found this while looking for a way to support multiple schemas in dev. If you're using supabase-cli you can just add your custom schemas to the config.toml file
or if your using the docker-compose version you can add your schemas to the .env file
g
Thanks! Awesome. donno how i missed the .env file option.