Clean Dev

Kill the Next.js dev server on the project's dev port and start a fresh one with `.next` (plus any configured extra caches) cleared. Detects the port (svc → `PORT` in `.env.local` / `.env` → `-p`/`--port` in the dev script → explicit argument → 3000) and the package manager, and uses the repo's own kill / clean scripts when they exist. Use whenever the user wants a clean dev-server restart — "clean dev", "restart the dev server", "kill and restart next", "blow away .next and restart", "fresh dev server", `/next-js:clean-dev [port]` — after regenerating a Prisma client, or when a newly added route hangs compiling forever.

mzvonar Updated

File contents

mzvonar/claude-skills-public/tree/main/plugins/next-js/skills/clean-dev commit 9679ec0fe4

Frequently asked questions

npx skillmds@latest add mzvonar/clean-dev