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