feat: generate types on local dev and self-hosted supabase studio#16863
feat: generate types on local dev and self-hosted supabase studio#16863alaister merged 15 commits intosupabase:masterfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
|
@kishanhitk is attempting to deploy a commit to the Supabase Team on Vercel. A member of the Team first needs to authorize it. |
|
I am having some confusion. When using supabase locally. Clicking on the "Generate and Download types" button makes a call to this URL: On cloud supabase dashboard, it makes a call to There is an API route, What should be the solution? |
|
Hey @kishanhitk, I think the solution here would be to add an API route for |
@alaister Why is there a |
|
You can go ahead and create a |
|
The type generator in the cloud dashboard generates types only for the |
|
Closes #15502 |

What kind of change does this PR introduce?
Feature Addition
What is the current behavior?
Closes: #16793
Allow generating types from local supabase studio.
Additional Info
The type generator in the cloud dashboard generates types only for the public schema. But, the type generated by cli contains the public, storage and graphql_public schema.
I have followed what the cli does because that is what we generally use in the CI pipeline to verify if types are updated.