Next.js · Plugins for Cursor | Prompt Studio
    1. Cursor
    2. Plugins
    3. Next.js
    Cursor · PluginsFrameworks#1

    Next.js

    App Router, Server Components, Server Actions and caching.

    by Prompt Studio

    nextjsreacttypescript

    Contents

    Where it goes: .cursor/rules/nextjs.mdc

    ---
    description: Convenciones y buenas prácticas de Next.js
    globs: app/**/*.tsx,app/**/*.ts
    alwaysApply: false
    ---
    
    - Usa el App Router (`app/`). Los componentes son Server Components salvo que necesiten estado, efectos o eventos; en ese caso añade `'use client'` lo más abajo posible del árbol.
    - Obtén datos en el servidor con `fetch` o el ORM directamente; no crees rutas de API solo para leer datos propios.
    - Usa Server Actions para mutaciones y revalida con `revalidatePath` o `revalidateTag`.
    - Exporta `metadata` o `generateMetadata` en cada página.
    - Usa `next/image` y `next/font`; nunca etiquetas `<img>` sin dimensiones.
    - Maneja estados con `loading.tsx`, `error.tsx` y `not-found.tsx`.
    - Valida entradas de formularios y acciones con Zod.
    

    More in Plugins

    • Python

      Typing, package layout and tests with pytest.

    • React + TypeScript

      Function components, hooks and strict typing.

    • Expo / React Native

      Expo Router, styling and mobile performance.

    • Go

      HTTP APIs, error handling and context.

    • Tailwind + shadcn/ui

      Utility classes, design tokens and accessible components.

    • Ruby on Rails

      Rails conventions, Hotwire and tests.

    See all in Plugins (508) →

    Your ultimate collection of AI prompts. Gather inspiration, explore examples, and create with AI.

    Main hubs

    • Prompts
    • Images
    • Videos
    • Generate Videos
    • Templates
    • Animations
    • Prices
    • About
    • Affiliate

    Browse by type

    • Component kits
    • Image Tags
    • Video Tags
    • Webs

    Popular topics

    • Music
    • Portfolio
    • Gaming
    • Travel
    • Nano Banana Pro

    Legal

    • Terms of Use
    • Privacy Policy
    • Cookie Policy
    • Licenses Policy
    • Refund Policy
    • Affiliate Program Terms
    • Crowdfunding Terms

    Magzin LLC, 800 Third Avenue Associates, New York, NY, 10022, United States

    © 2026 Prompt Studio by Magzin. All rights reserved.