#!/bin/sh set -e CONFIG_FILE="/app/config/config.yaml" CONFIG_EXAMPLE="/app/config.yaml.example" # Bootstrap config.yaml if missing if [ ! -f "$CONFIG_FILE" ]; then cp "$CONFIG_EXAMPLE" "$CONFIG_FILE" fi # HF Spaces requires port 7860 export PORT=7860 echo "[cursor2api] Starting on port 7860..." exec node dist/index.js