Prompts that produce Next.js applications.
12votes
0answers
2.0kviews

How do I prompt for a Next.js dashboard that doesn't look like every other admin template?

Every time I ask for "a dashboard in Next.js" I get the same shadcn-flavored gray boxes. I built a genuinely distinctive analytics dashboard using the prompt below, which forces an editorial, print-in
54votes
1answers
5.2kviews

Prompt for a Next.js email + OAuth auth flow with sessions that survive a refresh

Auth is where my "ship it" energy usually crashes. I asked for login and got a flow that stored a JWT in localStorage, had no CSRF thought, and logged the user out on every hard refresh because the se
22votes
2answers
4.1kviews

One-shot prompt that scaffolds a Next.js 14 App Router SaaS that actually compiles

I kept asking for "a Next.js SaaS starter" and getting a pile of files that referenced components that didn't exist, mixed the pages and app routers, and threw 40 type errors on first pnpm build. The
21votes
1answers
3.4kviews

GPT prompt to scaffold a Next.js marketing site with sane structure, not one 800-line page.tsx

When I ask for a "Next.js landing page" I get everything crammed into one giant app/page.tsx with inline styles and no separation. Fine for a demo, painful the moment you want to edit the pricing sect
11votes
2answers
3.2kviews

One-shot prompt for Next.js route handlers with input validation and consistent error shapes

Scaffolding the API layer, I kept getting route handlers that parsed await req.json() with zero validation, returned bare strings on error, and used a different error shape in every file, so the front
19votes
1answers
2.9kviews

How I get GPT to scaffold a whole repo (folder tree contract) instead of a single file dump

0-to-1 is my whole thing, so I want the model to lay down a real repo I can take the wheel on, not one 600-line file I have to explode by hand. What finally worked was treating the folder tree as a si
5votes
0answers
1.2kviews

Repo-scaffold prompt: whole marketing site skeleton in one pass, then I take the wheel

My workflow is 0-to-1: I want the model to lay down a complete, runnable repo skeleton so I can start editing real content in minute two, not fight tooling for an hour. The failure mode is a model tha