set_backend
(needs account token) Link an HTTPS backend (Railway, Render, Fly, anywhere) behind a DropTheHassle name. With uploaded files the path rules (default /api/*) reverse-proxy to the backend and the rest stays static; without uploaded files the WHOLE site serves from the backend. WITHOUT site_id it creates a fresh FREE site first: a backend-only project goes live on its own link in one call. Perfect for a deploy script: call this with the new URL after every backend deploy. Pass url="" (with site_id) to unlink. No money. Never buy anything without asking me. Never buy a domain, email or subscription for me without asking first. When something costs money, give me the payment link and let me pay.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The HTTPS origin of the backend, e.g. "https://myapp.up.railway.app". Empty string (with site_id) unlinks. | |
| slug | No | Optional address label for a NEW site, e.g. "myapp" -> myapp.dropthehassle.app. Errors when taken. | |
| paths | No | Optional path rules for split mode, e.g. ["/api/*", "/webhooks/*"]. Default ["/api/*"]. | |
| site_id | No | Optional: an existing site to link (from list_sites). Omit to create a new free site served fully from the backend. |