This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is a Next.js 14 static site configured for GitHub Pages deployment. It uses the App Router architecture and generates static HTML/CSS/JS files at build time.
Key Configuration: The site is configured with output: 'export' and basePath: "/github-pages-test" in next.config.js, which means:
- All pages are pre-rendered as static files in the
/outdirectory - The site is served under the
/github-pages-testpath - Server-side Next.js features (API routes, ISR, SSR) are not available
npm run devOpens at http://localhost:3000. Hot-reload is enabled for live updates.
npm run buildGenerates static files in the ./out directory ready for GitHub Pages deployment.
npm run lintRuns ESLint with Next.js configuration to check code quality.
This project does not have a testing framework configured. If adding tests, consider installing Jest or Vitest with React Testing Library.
app/- Next.js App Router directory containing pages and layoutslayout.tsx- Root layout with metadata (title: "Felix Gündling"), Inter font configurationpage.tsx- Home page componentglobals.css- Global styles with Tailwind directives and CSS custom properties for light/dark mode
public/- Static assets served from root (images, icons)
- Framework: Next.js 14.0.3 with App Router
- Language: TypeScript 5 (strict mode enabled)
- Styling: Tailwind CSS 3.3.0 with PostCSS
- React: Version 18
The @/* alias maps to the root directory (configured in tsconfig.json), so you can import with @/app/... instead of relative paths.
The site deploys automatically to GitHub Pages via GitHub Actions on push to main branch:
- Workflow file:
.github/workflows/nextjs.yml - Node.js 20 is used for builds
- Build artifacts from
/outare deployed to GitHub Pages - Base path
/github-pages-testis automatically applied to all routes and assets
Because this is a static export for GitHub Pages:
- No API Routes: Cannot use Next.js API routes or server-side code
- No Server-Side Rendering (SSR): Only static generation is supported
- No Incremental Static Regeneration (ISR): Pages cannot be revalidated at runtime
- Client-Side Only: All dynamic functionality must happen in the browser
See https://nextjs.org/docs/pages/building-your-application/deploying/static-exports#unsupported-features for full details.
Create new page.tsx files in the app/ directory following App Router conventions. All pages will be statically generated at build time.
- Global styles: Edit
app/globals.css - Tailwind configuration: Edit
tailwind.config.ts - Component styles: Use Tailwind utility classes directly in JSX
If the repository name changes, update basePath in next.config.js to match the new repository name.