CursorBot logoCursorBot

Next.js help that respects server and client boundaries

App Router bugs often come from mixing server-only code with client state. Tell CursorBot which file is a server component and which one uses hooks.

Ask about the boundary

Ask where data should be loaded, what must stay on the server, and which part needs an event handler.

Ask for a loading and error state when a page depends on a request. A page that only handles the success path will strand people when the request fails.

Example prompt

This page imports a client hook and also reads a server-only env var. Split it so the secret stays on the server.

Questions

Is CursorBot a Next.js product?

No. CursorBot is an independent assistant. It is not affiliated with the Next.js or Cursor teams.

Start with CursorBot