# Proxy API and WebSocket requests to the VPS backend.
# Replace BACKEND_URL with your actual VPS address, e.g.:
#   https://api.spineframe.example.com
#
# Cloudflare Pages proxies these requests (200 = rewrite, not redirect).
# The SPA catch-all ensures client-side routing works for /app/* paths.

/api/*  https://spineframe-production.up.railway.app/api/:splat  200

# SPA catch-all: serve index.html for all other routes (client-side routing)
/*  /index.html  200
