The home page (/[lang]) was prerendered at build, which called the GitHub API and required GITHUB_PAT during next build. Fork PRs can't access repo secrets, so their build step failed.
Adding await connection() makes the home render at request time, so the build no longer calls the API.
The revalidate: 60 data cache is unaffected (still 60s).
With no build-time API call, the CI build no longer needs secrets, so the env: block is removed — fork PRs now pass the full pipeline and CI holds no secrets.
N/A
npm run build — it succeeds, and /[lang] shows as ƒ (Dynamic) in the route table.npm run dev — the home page still lists repositories.feat:, fix:, chore:, refactor:, docs:, i18n:)locales/ko.json and locales/en.json (if UI text changed)