Skip to content

Fix docs type check: generate Next.js types before compilation#35

Merged
hotlong merged 2 commits intomainfrom
copilot/update-job-step-references
Feb 10, 2026
Merged

Fix docs type check: generate Next.js types before compilation#35
hotlong merged 2 commits intomainfrom
copilot/update-job-step-references

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 10, 2026

CI failing on docs type check with missing LayoutProps, PageProps, RouteContext. These are Next.js 15+ generated types that must be created via next typegen before tsc runs.

Changes

  • .github/workflows/ci.yml: Docs type check now uses pnpm run types:check instead of npx tsc --noEmit
    • Ensures fumadocs-mdx && next typegen && tsc --noEmit runs in sequence
    • Aligns with workspace's existing script definition
- - name: Type Check (Docs)
-   run: cd apps/docs && npx tsc --noEmit
+ - name: Type Check (Docs)
+   run: cd apps/docs && pnpm run types:check

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • nextjs.org
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

引用: https://github.com/objectstack-ai/mobile/actions/runs/21849654360/job/63053163931#step:7:1


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copilot AI changed the title [WIP] Update job step references in workflow Fix docs type check: generate Next.js types before compilation Feb 10, 2026
Copilot AI requested a review from hotlong February 10, 2026 15:16
@hotlong hotlong marked this pull request as ready for review February 10, 2026 15:26
Copilot AI review requested due to automatic review settings February 10, 2026 15:26
@hotlong hotlong merged commit 9f12667 into main Feb 10, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the CI workflow to run the docs workspace’s full type-check pipeline (including Next.js type generation) so TypeScript compilation doesn’t fail due to missing generated Next.js 15+ types.

Changes:

  • Switch “Type Check (Docs)” in CI from npx tsc --noEmit to pnpm run types:check in apps/docs.
  • Ensures fumadocs-mdx && next typegen && tsc --noEmit executes in the intended order via the existing docs script.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants