什麼是 data-layer-migration?
將 getStaticProps、getServerSideProps、getStaticPaths 或 API 路由 (pages/api/) 遷移到 App Router 等效項時使用。也可以在修復已遷移頁面中的陳舊資料、快取行為或取得錯誤時使用。 來源:blazity/next-migration-skills。
將 getStaticProps、getServerSideProps、getStaticPaths 或 API 路由 (pages/api/) 遷移到 App Router 等效項時使用。也可以在修復已遷移頁面中的陳舊資料、快取行為或取得錯誤時使用。
透過命令列快速安裝 data-layer-migration AI 技能到你的開發環境
來源:blazity/next-migration-skills。
Migrate data-fetching patterns (getStaticProps, getServerSideProps, getStaticPaths) and API routes to App Router equivalents.
This skill requires the nextjs-migration-toolkit skill to be installed. All migration skills depend on it for AST analysis.
Before applying any migration patterns, check the target Next.js version. Read .migration/target-version.txt if it exists, or ask the user.
將 getStaticProps、getServerSideProps、getStaticPaths 或 API 路由 (pages/api/) 遷移到 App Router 等效項時使用。也可以在修復已遷移頁面中的陳舊資料、快取行為或取得錯誤時使用。 來源:blazity/next-migration-skills。
為搜尋與 AI 引用準備的穩定欄位與指令。
npx skills add https://github.com/blazity/next-migration-skills --skill data-layer-migration將 getStaticProps、getServerSideProps、getStaticPaths 或 API 路由 (pages/api/) 遷移到 App Router 等效項時使用。也可以在修復已遷移頁面中的陳舊資料、快取行為或取得錯誤時使用。 來源:blazity/next-migration-skills。
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/blazity/next-migration-skills --skill data-layer-migration 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/blazity/next-migration-skills