Instruction file imported from SixtySecondsApp/template-nextjs-supabase (
.cursor/rules/project-structure.mdc). Copyright stays with the author.
Project Structure Guide
- The app uses the Next.js App Router. Server Components by default.
- Key entry points:
src/app/layout.tsxfor root layoutsrc/app/page.tsxas the main routesrc/app/globals.cssfor global styles
Expected folders
src/app/routes and route groupssrc/components/ui/for base UI (prefer shadcn/ui)features/for feature-specific components
src/lib/utils.tsfor utilitiessupabase/for client setups (server/client helpers)
src/hooks/custom hookssrc/styles/global stylessrc/types/(e.g., Supabase generated types)
Quick links
Conventions
- Keep components small and specialized.
- Prefer colocating feature components in
src/components/features. - API handlers live under
src/app/api/*/route.tswhen added.