Logic
Edge functions
Deploy, invoke, and monitor server-side TypeScript functions.
Edge functions are server-side TypeScript functions for anything that must not run in the browser: calling third-party APIs with secret keys, webhook handlers, payments logic, and input validation. The Edge Functions section lists your deployed functions with invocation counts, success rates, and average duration.
Deploying and testing
- The usual path: ask the agent ("add a function that emails me when someone signs up") and it writes and deploys the function from your workspace.
- Deploy From Workspace deploys a function that already exists in your project code by its slug.
- You can also paste function code directly into the Deploy Function panel for quick experiments.
- Invoke sends a test ping to a function and shows the JSON result inline.
- Click a function's name for details: its code, an invocation chart, recent logs, and a Copy URL button for its public endpoint.
Deleting a function removes the deployed code immediately. Metrics show the most recent 5,000 invocations in the selected window.