-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: generate types on local dev and self-hosted supabase studio #16863
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks, @kishanhitk!
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.