feat: migrate from Vite to Next.js 15 (App Router) - #28
Merged
Conversation
- Replace Vite build with Next.js 15 App Router - Add app/layout.jsx (Server Component) with metadata, OGP, structured data - Add app/page.jsx and app/providers.jsx (Client Components) - Replace virtual:badges Vite plugin with /api/badges API Route - Fix SSR issues in ThemeContext, SectionContext, useMediaQuery - Fix ProfileImage to use .src from Next.js static image imports - Add sitemap.xml auto-generation and robots.txt - Update README to reflect Next.js stack Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace Vite build output (dist/) with Next.js (.next/, out/). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Remove plugins/ (vite-plugin-badges.js) - Remove scripts/ (badge-fetcher.js, fetch-badge-data.js) - Remove dist/ build artifact Badge fetching is now handled by app/api/badges/route.js. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Fixes Vercel build failure caused by old Vite project settings that looked for the "dist" output directory. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
writeCache failures (e.g. read-only filesystem on Vercel) no longer cause the entire request to fail. Badge data is now returned even when caching is unavailable. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add scripts/fetch-badges.js to generate src/data/badges.json - Commit fetched badge data as src/data/badges.json - Import badges directly in Skills.jsx (no runtime fetch needed) - Remove app/api/badges route (no longer needed) - All pages are now fully static (no server-rendered routes) To update badges: run `node scripts/fetch-badges.js` and commit the result. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace outdated API Route description with new static JSON approach. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
app/layout.jsx(Server Component)でメタデータ・OGP・構造化データを管理virtual:badgesViteプラグインをNext.js API Route(/api/badges)に置き換えThemeContext・SectionContext・useMediaQueryをSSR対応に修正ProfileImageのローカル画像importを.srcアクセスに修正sitemap.xml自動生成・robots.txtを追加vite.config.js,index.html,src/main.jsx)を削除Test plan
npm run devでローカル起動 → 全セクション表示・ナビ動作確認/api/badges)npm run buildがエラーなく完了すること/sitemap.xmlと/robots.txtにアクセスできること🤖 Generated with Claude Code