Skip to content

migrate: Next.js 16 → Astro 7 - #47

Merged
PaloMiku merged 1 commit into
mainfrom
astro
Oct 2, 2026
Merged

PaloMiku merged 1 commit into
mainfrom
astro

Conversation

@PaloMiku

@PaloMiku PaloMiku commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator

文档站框架迁移,内容零搬迁(53 个 mdx + 11 个 meta.json 原位保留)。

  • 构建栈换成 astro 7.3.5 + fumadocs 16.15.18,Tailwind 4 走 @tailwindcss/vite
  • 内容管线改为 Astro Content Collections + 手写 StaticSource,删除 source.config.ts
  • 新增 src/lib/astro-jsx.ts 与 src/components/{card,accordion}.tsx 兼容层, 处理 Astro 7 下 JSX-as-prop 与 Radix Context 跨 slot 的问题
  • 路由层由 src/app/** 换为 src/pages/**;/sitemap.xml 改为手写端点
  • CI/部署切到 dist/,行尾统一 LF,移除 11 个已废弃依赖
  • 首页文案按 Mix Space 实际技术栈修正(Core 用 NestJS,主题用 Next.js)
  • .gitignore 去掉 Next/yarn 残留与无效的精确文件名,修正会误提交构建产物的规则

验证:build/check/lint/pangu 全绿;URL 集合与旧站零差异;断链阻塞 0。

文档站框架迁移,内容零搬迁(53 个 mdx + 11 个 meta.json 原位保留)。

- 构建栈换成 astro 7.3.5 + fumadocs 16.15.18,Tailwind 4 走 @tailwindcss/vite
- 内容管线改为 Astro Content Collections + 手写 StaticSource,删除 source.config.ts
- 新增 src/lib/astro-jsx.ts 与 src/components/{card,accordion}.tsx 兼容层,
  处理 Astro 7 下 JSX-as-prop 与 Radix Context 跨 slot 的问题
- 路由层由 src/app/** 换为 src/pages/**;/sitemap.xml 改为手写端点
- CI/部署切到 dist/,行尾统一 LF,移除 11 个已废弃依赖
- 首页文案按 Mix Space 实际技术栈修正(Core 用 NestJS,主题用 Next.js)
- .gitignore 去掉 Next/yarn 残留与无效的精确文件名,修正会误提交构建产物的规则

验证:build/check/lint/pangu 全绿;URL 集合与旧站零差异;断链阻塞 0。
Copilot AI balanced review requested due to automatic review settings October 2, 2026 17:32
@safedep

safedep Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

⚠️ Scan Failed: Pull Request Too Large

This pull request exceeds GitHub's diff limits and cannot be scanned.

GitHub Limits:

  • Maximum 300 files per diff
  • Maximum 1 MB total diff size

Recommendations:

  • Split this PR into smaller, focused changes
  • Review critical dependency changes manually
  • Contact your team if this is blocking your workflow
    This report is generated by SafeDep GitHub App

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@PaloMiku
PaloMiku merged commit 02f5458 into main Oct 2, 2026
2 of 3 checks passed
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.

2 participants