Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.

Migrate blog from Gatsby to Next.js (App Router) and update deploy workflow#22

Closed
suu3 wants to merge 1 commit intodevelopfrom
codex/migrate-to-latest-next.js-specs
Closed

Migrate blog from Gatsby to Next.js (App Router) and update deploy workflow#22
suu3 wants to merge 1 commit intodevelopfrom
codex/migrate-to-latest-next.js-specs

Conversation

@suu3
Copy link
Copy Markdown
Owner

@suu3 suu3 commented Feb 25, 2026

Motivation

  • Replace the existing Gatsby site with a Next.js App Router-based static site to simplify structure and use Next.js static export.
  • Update CI/CD to modern tool versions and ensure the static out/ folder is deployed to GitHub Pages.

Description

  • Removed Gatsby-specific configuration, plugins, templates, and many legacy React components and styles, and added a Next.js app/ structure with app/layout.tsx, app/page.tsx, category and post routes, global CSS, and UI components like PostSearch.
  • Added lib/posts.ts for markdown content ingestion, next.config.ts with output: 'export', moved static assets into public/, and created public/site.webmanifest for PWA metadata.
  • Reworked project metadata and dependencies in package.json to remove Gatsby dependencies and add next, react/react-dom v19, gray-matter, TypeScript and Tailwind-related dev deps, and updated npm scripts to dev, build, start, and lint.
  • Updated tooling and CI: tsconfig.json adjusted for Next, postcss.config.ts switched to Tailwind plugin, .gitignore updated, and GitHub Actions deploy.yml bumped actions versions, switched Node to 20, pnpm to v9, installs with --frozen-lockfile, builds with pnpm run build, and deploys ./out via peaceiris/actions-gh-pages@v4.

Testing

  • No automated tests were executed as part of this change; CI workflow was updated but not run in this PR.

Codex Task

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Feb 25, 2026

⚠️ No Changeset found

Latest commit: b425d21

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions Bot added ✨ 기능 업데이트 새로운 기능 👷 ci/cd git workflow labels Feb 25, 2026
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b425d21678

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

run: pnpm install
- name: Build
run: pnpm clean && pnpm run build
run: pnpm install --frozen-lockfile
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P0 Badge Regenerate lockfile before frozen install in CI

The workflow now runs pnpm install --frozen-lockfile, but this commit also replaces the dependency set in package.json without updating pnpm-lock.yaml; pnpm documents that frozen mode "fail[s] if an update is needed," and at this revision install fails with ERR_PNPM_OUTDATED_LOCKFILE. That means every deploy job will stop at dependency installation and no static build/deploy can complete until the lockfile is regenerated and committed.

Useful? React with 👍 / 👎.

<p className="mt-4 leading-7 text-gray-700">{post.description}</p>
<p className="mt-3 text-sm text-gray-600">태그: {post.tags.join(', ') || '없음'}</p>
<hr className="my-6 border-[#2a2b31]" />
<pre className="overflow-x-auto whitespace-pre-wrap rounded-lg bg-gray-100 p-4 text-sm leading-6">{post.content}</pre>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Render markdown content instead of raw source text

The post page prints post.content inside a <pre>, so markdown is displayed as literal source (e.g., headings, links, code fences, image syntax) rather than rendered article content. For this blog’s markdown-based posts, readers lose formatted content and media rendering on every post detail page, which is a major functional regression from the previous behavior.

Useful? React with 👍 / 👎.

@suu3 suu3 closed this Feb 25, 2026
@suu3 suu3 deleted the codex/migrate-to-latest-next.js-specs branch February 25, 2026 15:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant