From 39cdf692ce0520ce66e59eb027269c43436bbc0e Mon Sep 17 00:00:00 2001 From: kilyabin <65072190+kilyabin@users.noreply.github.com> Date: Thu, 5 Mar 2026 14:10:30 +0400 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D1=82=D1=8C=20=D0=BA=D0=BE=D0=BF=D0=B8=D1=80=D0=BE=D0=B2?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D0=B5=20=D1=81=D1=82=D0=B0=D1=82=D0=B8=D1=87?= =?UTF-8?q?=D0=B5=D1=81=D0=BA=D0=B8=D1=85=20=D1=84=D0=B0=D0=B9=D0=BB=D0=BE?= =?UTF-8?q?=D0=B2=20=D0=B2=20manage.sh=20(update)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Добавлено удаление старых файлов перед копированием новых - public и .next/static теперь копируются корректно при обновлении Co-authored-by: Qwen-Coder --- scripts/manage.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/manage.sh b/scripts/manage.sh index 96a4c23..2325b11 100755 --- a/scripts/manage.sh +++ b/scripts/manage.sh @@ -198,11 +198,13 @@ case "$1" in # Copy public directory to standalone (always update) if [ -d "$INSTALL_DIR/public" ]; then echo -e "${YELLOW}Copying public directory to standalone...${NC}" + rm -rf "$INSTALL_DIR/.next/standalone/public" 2>/dev/null || true cp -r "$INSTALL_DIR/public" "$INSTALL_DIR/.next/standalone/public" 2>/dev/null || true fi # Copy .next/static to standalone/.next/static (always update) if [ -d "$INSTALL_DIR/.next/static" ]; then echo -e "${YELLOW}Copying .next/static to standalone...${NC}" + rm -rf "$INSTALL_DIR/.next/standalone/.next/static" 2>/dev/null || true mkdir -p "$INSTALL_DIR/.next/standalone/.next" cp -r "$INSTALL_DIR/.next/static" "$INSTALL_DIR/.next/standalone/.next/static" 2>/dev/null || true else