Skip to content

Migrate website to App Router and update rotion to v3.1.0#108

Merged
linyows merged 1 commit intomainfrom
website-app-router-migration
Feb 23, 2026
Merged

Migrate website to App Router and update rotion to v3.1.0#108
linyows merged 1 commit intomainfrom
website-app-router-migration

Conversation

@linyows
Copy link
Owner

@linyows linyows commented Feb 23, 2026

Summary

  • Migrate website from Next.js Pages Router to App Router structure
  • Update rotion from v3.0.1 to v3.1.0
  • Convert next.config.mjs to next.config.ts (TypeScript)

Changes

  • pages/_app.tsx, _document.tsx, index.tsxapp/layout.tsx, app/page.tsx
  • getStaticProps → async Server Component for data fetching
  • next/head → Next.js Metadata API (export const metadata)
  • Add app/components/ClientLink.tsx and app/components/Page.tsx as 'use client' wrappers for rotion UI

Test plan

  • Set NOTION_TOKEN in .env.local and run npm run build
  • Verify npm run dev renders the page correctly
  • Check dark mode and responsive layout

🤖 Generated with Claude Code

Replace Pages Router (pages/) with App Router (app/) structure, using
async Server Components for data fetching and 'use client' wrappers
for rotion UI components. Convert next.config from .mjs to .ts.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@linyows linyows merged commit fa0a0c5 into main Feb 23, 2026
11 checks passed
@linyows linyows deleted the website-app-router-migration branch February 23, 2026 06:00
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.

1 participant