CRA から Next.js 15 (App Router) + TypeScript + Tailwind v4 に移行#15
Merged
Conversation
CRA は 2025-02-14 に React チームが正式に非推奨化しているため、現行の推奨フレームワークへ刷新する。 あわせて手動デプロイで属人化していた運用を GitHub Actions の CI/CD に置き換える。 主な変更: - フレームワーク: react-scripts 5 → next 15 / react 19 / TypeScript 5 - スタイル: 各コンポーネントの個別 CSS → Tailwind CSS v4 (@import "tailwindcss" + @theme) - 配信: SPA → output: 'export' + trailingSlash: true で SSG(CloudFront の Custom Error Response 不要に) - ルーティング: react-router-dom → Next.js App Router (app/<route>/page.tsx) - SEO: 各 page.tsx に metadata、app/sitemap.ts と app/robots.ts を追加 - CI/CD: .github/workflows/ci.yml (PR 検証) と deploy.yml (prod push で S3 sync + CloudFront invalidation, OIDC で IAM Role assume) - 整理: src/Gabage/, i18next/react-scroll/gh-pages 等の死蔵依存、homepage フィールドを削除 - 画像: src/assets → public/images/、next/image 経由で参照 - ブランド: <title>Ic-Growth</title> をメタデータで復元(favicon 素材は受領後差し替え) CLAUDE.md は新スタックとデプロイ手順、ブランチ運用 (develop / main / prod) に書き換え。 Co-Authored-By: Claude Opus 4.7 (1M context) <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.
CRA は 2025-02-14 に React チームが正式に非推奨化しているため、現行の推奨フレームワークへ刷新する。 あわせて手動デプロイで属人化していた運用を GitHub Actions の CI/CD に置き換える。
主な変更:
CLAUDE.md は新スタックとデプロイ手順、ブランチ運用 (develop / main / prod) に書き換え。