From 034a345521ea31460998e612e1e496ec97063a0f Mon Sep 17 00:00:00 2001 From: AmirmahdiNourkazemi Date: Sat, 13 Jun 2026 21:06:31 +0330 Subject: [PATCH] fix: deploy fixed --- scripts/deploy.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 3a56be6..20333c0 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -22,7 +22,10 @@ DEPLOY_USER="${DEPLOY_USER:-ubuntu}" DEPLOY_PATH="${DEPLOY_PATH:-/var/www/aramland-admin}" DEPLOY_PASSWORD="${DEPLOY_PASSWORD:-}" -echo "▸ Building locally…" +echo "▸ Building locally (clean)…" +# Remove caches so the production build never type-checks a stale `.next/dev` +# validator (tsconfig includes .next/dev/types) and never ships stale out/ files. +rm -rf .next out npm run build if [ ! -d out ]; then