Skip to content

[CHORE] Auto-generate Supabase types on build #401

Description

@github-actions

Problem Statement

Currently, developers manually write TypeScript interfaces for database rows, leading to out-of-sync types when the schema changes.

Proposed Solution

Integrate the Supabase CLI into the project. Add a generate-types script to package.json that fetches the schema from the local/remote project and outputs database.types.ts. Update the codebase to use these strict types.

Alternatives Considered

Using Prisma, but we want to stick to the native Supabase client for edge compatibility.

Additional Context

Requires setting up a local Supabase environment in Docker or defining a clear workflow in CONTRIBUTING.md.

Metadata

Metadata

Labels

ADVENTURERIntermediate — 25 ptsELUSOCELUSOC project submissionchore

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions