fix: clean Next.js build artifacts in setup script

Add cleanup step to remove packages/web/.next directory before building.
This prevents "Cannot find module" errors from stale webpack artifacts
that can occur after rebasing or switching branches.

The cleanup step ensures a clean build every time the setup script runs.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Prateek 2026-02-16 22:27:38 +05:30
parent 89ae97cd4e
commit 25580ebb85
1 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,9 @@ fi
echo "📦 Installing dependencies..."
pnpm install
echo "🧹 Cleaning stale build artifacts..."
rm -rf packages/web/.next
echo "🔨 Building all packages..."
pnpm build