Jiseoup/showmycodePublic
EN|KO
  • Code
  • Commits
  • Pull Requests
← Back to list
Merged

fix: await async params in GitHub API route for Next.js 16

#4
JiseoupJiseoup · Mar 31, 2026fix/api-route-params → main
fix
OverviewCommitsFiles changed

Related Issue

N/A — CI build failure

Changes

  • Update params type from { path: string[] } to Promise<{ path: string[] }> in API route
  • Add await params to match Next.js 16 async params convention

How to Verify

  1. npx tsc --noEmit passes with no errors
  2. npm run build passes (Node >= 20)
  3. Access /api/github/repos/{owner}/{repo} and confirm it still proxies correctly

Checklist

  • npm run build passes
  • npm run lint passes
  • New/updated strings added to both dictionaries/ko.json and dictionaries/en.json (if applicable)
  • Tests added for new functionality (if applicable)