generated typescript types do not match --local with same schema

supabase gen types typescript --local --schema=public

different output (for same migrations) in local, which breaks the recommended CICD script to check generated types are checked in with a git diff

  • supabase managed - any 1:1 foreign key relationship is marked as such (isOneToOne: true), but this information is missing with --local
  • supabase managed - includes (relatively recently) some new types (Tables, TablesInsert, TablesUpdate) , missing with --local
image.png
Was this page helpful?