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
Problem
ALL deployments are failing since the airdrop PRs were merged. The build breaks with a TypeScript error:
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
storylinestable. The metadata route usesRecord<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:
To a properly typed object:
This matches the actual columns being updated and satisfies the Supabase generated types.
Files
src/app/api/storyline/[storylineId]/metadata/route.ts— line ~105Acceptance Criteria
npm run buildpasses