Skip to content

[Hotfix] Fix TypeScript build error blocking all deployments #913

@realproject7

Description

@realproject7

Problem

ALL deployments are failing since the airdrop PRs were merged. The build breaks with a TypeScript error:

./src/app/api/storyline/[storylineId]/metadata/route.ts:108:13
Type error: Argument of type 'Record<string, string>' is not assignable to parameter 
of type 'RejectExcessProperties<...>'

Root Cause

The airdrop DB migration (#878) added new tables and likely triggered Supabase type regeneration. The updated types enforce stricter column typing on the storylines table. The metadata route uses Record<string, string> for the update payload, which no longer satisfies the strict Supabase types.

Fix

In src/app/api/storyline/[storylineId]/metadata/route.ts, line ~105:

Change:

const update: Record<string, string> = {};

To a properly typed object:

const update: { genre?: string; language?: string } = {};

This matches the actual columns being updated and satisfies the Supabase generated types.

Files

  • src/app/api/storyline/[storylineId]/metadata/route.ts — line ~105

Acceptance Criteria

  • npm run build passes
  • Deploy Production workflow succeeds
  • Genre/language metadata update still works

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/T3Assigned to T3 builder agentbugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions