Skip to content

TypeScript type generation fails after migrating to new publishable and secret keys #3893

@atej

Description

@atej

Running npx supabase gen types typescript --project-id xxx > ./src/supabase.types.ts

results in the following:

Supabase CLI 2.31.8

HTTP GET: https://api.supabase.com/v1/projects/xxx/types/typescript?included_schemas=public
failed to retrieve generated types: {"message":"{"message":"Legacy API keys are disabled","hint":"Your legacy API keys (anon, service_role) were disabled on xxx. Re-enable them in the Supabase dashboard, or use the new publishable and secret API keys."}"}


What are the changes required to get type generation working again?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions