Servers are for a running process. To publish static or built output at a
stable subdomain instead, use Sites.
Start a server
Both
command and exec also accept an array of strings when you would rather not quote a shell string.
The workspace is mounted at /ws in the sandbox, so your code is already there.
Who can reach it
A non-public server needs a minted URL rather than its bare address:
"presentation": "embed" when it will be loaded inside a frame.
Limits
Exceeding the server limit returns
429.
Manage servers
starting, running, stopped, or failed.
Calling connected integrations from a server
A server can call a connected provider without ever holding that provider’s credential. Declare a portable alias in the.server file:
.server file. You bind each alias to a real connection when you explicitly launch the server, and integration-enabled files never launch on their own.
Launching through the API means sending those bindings with the request. The declarations stay in the file:
ARG_INTEGRATIONS_URL and ARG_INTEGRATIONS_TOKEN. Append the alias and a relative provider path, and send the token as a bearer credential:
Related
- Tools - one-off commands, when you do not need a long-lived process
- Integrations - connecting the accounts a binding points at
- Servers API reference - every field