#!/usr/bin/env bash
set -euo pipefail

cd "$(dirname "$0")/.."
source deploy/env.sh

export K8S_NAMESPACE="$PROD_NAMESPACE"
export APP_HOST="$PROD_HOST"
export NEXT_PUBLIC_SITE_URL="https://${PROD_HOST}"
export NEXT_PUBLIC_API_BASE="https://${PROD_HOST}/api"
export APP_ENV="production"
export CLUSTER_ISSUER="$PROD_CLUSTER_ISSUER"
export INGRESS_CLASS

# optionally set AUTH_SECRET (and other secrets) in the environment before running
bash deploy/deploy.sh
