From d467b3958e309b128bc6b09b4f5008cdc511a061 Mon Sep 17 00:00:00 2001 From: Pedro Oliveira Date: Sun, 28 Jun 2026 02:07:11 +0100 Subject: [PATCH] chore(repo): add dev:fresh script (wipes Next caches before starting) After heavy branch-switching, PR merges, or installs touching apps/, the running Next dev servers can lose track of their webpack module graph and start returning 404 for every /_next/static/* chunk. Hit this three times in one calibration session. dev:fresh removes apps/*/.next and apps/*/.turbo before running pnpm dev so a session that starts with this command is guaranteed a clean Next build. Standard `pnpm dev` is unchanged for users who want to keep an existing cache. --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index e0f37a4..15865cb 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "scripts": { "build": "turbo run build", "dev": "turbo run dev", + "dev:fresh": "rm -rf apps/*/.next apps/*/.turbo && pnpm dev", "lint": "turbo run lint", "typecheck": "turbo run typecheck", "test": "turbo run test",