Connect backend
set_backend(needs account token) Links an HTTPS backend hosted on AWS, Google Cloud, DigitalOcean or your own server to a DropTheHassle name. url is an HTTPS origin with no path, port 443, and a hostname that has an IPv4 address. Paths pass through unchanged. With uploaded files, only the path rules (default /api/*) go to the backend and the rest is served from the files. Without uploaded files, the whole site comes from the backend. Without site, a new site is created in the account. With site, the site is already on the account. An empty url with site removes the link. confirm=true applies a change to an existing site. A new site does not use confirm. Does not charge.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The HTTPS origin of the backend, e.g. "https://api.example.com". Empty string (with site) unlinks. | |
| site | No | Optional address of an existing site to link, for example myproject.dropthehassle.app. Absent creates a new site served fully from the backend. | |
| 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/*"]. | |
| confirm | No | True applies a change to an existing site. False leaves that site unchanged and the reply describes the change. |