Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 1.37 KB

File metadata and controls

28 lines (18 loc) · 1.37 KB

AGENTS.md

Cursor Cloud specific instructions

Overview

Next.js 16 portfolio site (App Router, React 19, Tailwind CSS 3, Three.js). Single service, no database or external dependencies needed.

Dev server

pnpm dev

Runs on port 2424. See package.json scripts for all available commands.

Linting and type checking

  • pnpm lint -- ESLint (requires eslint.config.mjs flat config for ESLint 9)
  • pnpm typecheck -- TypeScript (tsc --noEmit)
  • pnpm precommit -- runs both lint and typecheck

Non-obvious caveats

  • The global accent color uses CSS custom property --root-color. It is resolved server-side in app/layout.tsx from root_color cookie fallback to #ff0000, proposal pages can provide a per-page default via themeColor frontmatter (applied in app/proposals/[slug]/layout.tsx), and AppProvider persists user overrides back to the cookie.
  • pnpm build has a pre-existing failure on /_global-error page (useContext null reference). The dev server works fine despite this.
  • ESLint 9 requires flat config format. The repo uses .eslintrc.json (legacy) alongside eslint.config.mjs (flat config bridge). The flat config file imports from eslint-config-next/core-web-vitals directly.
  • Proposal detail pages (/proposals/[slug]) hide the site Header, Footer, and top padding via pathname checks in NavWrapper, Footer, and LayoutInner.