Setup & Installation
What This Skill Does
Netlify Functions lets you write serverless functions that run on Netlify's infrastructure. It covers the modern default export syntax, TypeScript support, path and method routing, background functions for long-running tasks, scheduled functions via cron, and streaming responses.
The skill eliminates the guesswork around modern syntax vs. legacy handler patterns, resource limits, and when to use background vs. scheduled functions — details you'd otherwise piece together from scattered Netlify docs.
When to use it
- Writing a REST API endpoint for a static React app without a separate backend
- Running a background function to process image uploads after the user gets an immediate 202 response
- Scheduling a nightly cron job to sync data from an external API
- Streaming server-sent events from a function to a client in real time
- Accessing geo and IP data from incoming requests to serve localized content