Short answer
Netlify gives synchronous functions 60 seconds and scheduled functions 30 seconds, and neither limit is configurable. So find the slow part instead of looking for a setting: an outside call with no timeout, a database far from the function’s region, or heavy work inside the function. Work that takes longer belongs in a background function, which answers with 202 straight away and can run for up to 15 minutes.
Why it times out, and what to do
01
The limit can’t be raised
Netlify’s defaults list a 60-second execution limit for synchronous functions, 30 seconds for scheduled functions and 15 minutes for background functions, and mark none of them as configurable. If a request needs longer than 60 seconds, change how the work runs rather than looking for a setting.
02
Waiting on an AI model or outside API
Calls to an AI model or another service can stall. Set a timeout on each one, kept under 60 seconds, and return a clear error to the user when it fires.
03
The function is far from your database
“Deploying serverless functions close to their data sources, such as a database or another backend service, can greatly reduce roundtrip time for data retrieval” Netlify, Optional configuration for functions
New sites deploy functions to cmh (Ohio) by default. If your database is somewhere else, every query makes the round trip. On Pro and Enterprise plans you can choose the function region to sit near the database.
04
The function’s own work is heavy
“You're hitting out-of-memory errors or timeouts caused by the function's own work, rather than by waiting on an external service or database.” Netlify, Optional configuration for functions
Image or PDF work, large JSON or CSV files and other CPU-bound jobs can run out of time on their own. Netlify suggests raising memory or vCPU for that case, and notes that billing scales with the configured size.
05
Long work belongs in a background function
“When a function is invoked asynchronously, there is an initial 202 success response that indicates that the function was successfully invoked.” Netlify, Background Functions overview
Set background: true in the function’s config. The caller gets an empty 202 response straight away and the function keeps running for up to 15 minutes, so Netlify suggests passing the result somewhere other than the caller, such as your database.
export const config: Config = { background: true, path: "/process", }
Checked against the vendor’s docs on : Netlify docs: Optional configuration for functions; Netlify docs: Background Functions overview.
Rather hand it over?
Fixed scope, fixed price, paid upfront. The work happens in writing; no call needed.
- from $450App Fix TicketOne reproducible bug in an existing mobile or web app, diagnosed and fixed.See scope and start
- from $450AI-Built App RescueA Lovable, Bolt or Cursor app checked end to end in 3 days, then its worst problems fixed at a fixed price.No issues worth fixing, no charge. If the Launch Check finds nothing rated medium or higher, Simon refunds the full $450. You keep the report either way.See scope and start
Related: Vercel function 504 timeout · Build failed on Netlify or Vercel · 404 on refresh on Netlify or Vercel · Backend and API development