#!/usr/bin/env bash

# Deprecated legacy static frontend deploy shim.
# Kept only so older runbooks fail clearly instead of redeploying the wrong surface.

set -euo pipefail

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
CANONICAL_SCRIPT="$REPO_ROOT/scripts/deploy-next-frontend-to-vmid5000.sh"

echo "This script is deprecated."
echo "It previously deployed the legacy static SPA, which is no longer the supported production frontend."
echo ""
echo "Use the canonical Next.js frontend deploy instead:"
echo "  bash $CANONICAL_SCRIPT"
echo ""
echo "If you are following an older runbook, update it to the canonical deploy path."
exit 1
