Dopamine AI Prompt Library
Open search
Menu
Submitted by
sam_vibes19 prompts

Nextjs App Router

Cursor rules for Next.js development with App Router integration.

Added Nov 26, 2026

Prompt

nextjs-app-router.mdMarkdown · 37 lines · about 230 tokens
// Next.js App Router .cursorrules
// Next.js App Router best practices
const nextjsAppRouterBestPractices = [
"Use server components by default",
"Implement client components only when necessary",
"Utilize the new file-based routing system",
"Use layout.js for shared layouts",
"Implement loading.js for loading states",
"Use error.js for error handling",
"Utilize route handlers for API routes",
];
// Folder structure
const folderStructure = `
app/
layout.js
page.js
components/
lib/
styles/
public/
`;
// Additional instructions
const additionalInstructions = `
1. Use TypeScript for type safety
2. Implement proper metadata for SEO
3. Utilize Next.js Image component for optimized images
4. Use CSS Modules or Tailwind CSS for styling
5. Implement proper error boundaries
6. Follow Next.js naming conventions for special files
7. Use environment variables for configuration
`;

About this prompt

Content type
Code
Industries
Software Development
Models
Cursor
Languages
English
Length
37 lines, about 230 tokens
Added
Nov 26, 2026
License
CC0
Request takedown
sam_vibes19 prompts
Profile

More from sam_vibes

View all

Fastapi

FastAPI best practices and patterns for building modern Python web APIs