GEMINI.md for Next.js App Router Projects — Free Gemini…
    Neura MarketNeura Market/Gemini
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsGamesBlogVideosGuidesCoursesCommunityGemsExtensionsTrending
    GeminiRulesGEMINI.md for Next.js App Router Projects
    Back to Rules
    Coding

    GEMINI.md for Next.js App Router Projects

    Community April 23, 2026
    0 copies 0 downloads

    A GEMINI.md configuration for Next.js 15 App Router projects covering Server Components, data fetching patterns, and performance best practices.

    Rule Content
    # Project: [PROJECT NAME]
    ## Next.js 15 + App Router + TypeScript
    
    ## General Instructions
    - Use Next.js App Router (not Pages Router)
    - TypeScript strict mode is mandatory
    - Use Server Components by default; only add "use client" when necessary
    - Prefer Server Actions over API routes for mutations
    - Use next/image for all images, next/font for fonts
    
    ## File Conventions
    - `page.tsx` — route segments
    - `layout.tsx` — shared layouts
    - `loading.tsx` — loading UI (Suspense boundary)
    - `error.tsx` — error boundary (must be "use client")
    - `not-found.tsx` — 404 handling
    
    ## Data Fetching
    - Fetch data in Server Components, not Client Components
    - Use React cache() for request deduplication
    - Set appropriate revalidate intervals or use `revalidatePath/revalidateTag`
    - Never expose sensitive data (API keys, tokens) to Client Components
    
    ## Styling
    - Use Tailwind CSS utility classes
    - Use `cn()` utility for conditional classes (clsx + twMerge)
    - Component-specific styles go in the component file
    - Design tokens in tailwind.config.ts
    
    ## Performance
    - Use dynamic imports for heavy Client Components
    - Implement Suspense boundaries around slow data fetches
    - Use `generateStaticParams` for known dynamic routes
    - Set metadata in layout.tsx and page.tsx for SEO

    Tags

    nextjsreactconfigurationgemini-cli

    Comments

    More Rules

    View all

    Sleepycat Seo Platform Gemini Rules

    A
    acovrp

    LITE IDE Gemini Rules

    H
    Heyz24

    Shadowtagai Monorepo V2 Gemini Rules

    S
    ShadowTag-v2

    WoKFlow Gemini Rules

    H
    howyongheng0313

    MetaPrompter Gemini Rules

    U
    ummerr

    Taskora Gemini Rules

    K
    kabilesh-c

    Stay up to date

    Get the latest Gemini prompts, rules, and resources delivered to your inbox weekly.

    Neura Market LogoNeura Market

    Discover the best AI prompts, plugins, and resources for Gemini and more.

    Content Types

    • Rules
    • Prompts
    • MCPs
    • Agents
    • Guides

    Platforms

    • ChatGPT Directory
    • Claude Directory
    • Gemini Directory
    • Cursor Directory
    • Grok Directory
    • Perplexity Directory
    • DeepSeek Directory
    • CoPilot Directory
    • Stable Diffusion Directory
    • Midjourney Directory
    • All Directories

    Resources

    • Blog
    • Documentation
    • Help Center
    • Marketplace

    Legal

    • Privacy Policy
    • Terms of Service

    © 2026 Neura Market. All rights reserved.

    |

    Not affiliated with any AI platform vendors.

    Neura Market

    Custom AI Systems & Services

    Our team of experienced AI builders will help build custom AI systems, workflows, and solutions for your business.

    Request custom work

    Ready-made automations for this

    Workflows from the Neura Market marketplace related to this Gemini resource

    • Automate Daily LinkedIn Ads Performance Data to Google Sheetsmake · $2.99 · Related topic
    • SmartLead to HubSpot Performance Analyticsn8n · $14.99 · Related topic
    • Send search term performance stats from Google Ads in an emailmake · $4.99 · Related topic
    • Automate Restaurant Daily Performance Reports with AI Insightsn8n · $24.99 · Related topic
    Browse all workflows