---
number: 36850
slug: 36850-update-to-edge-functions-regional-invocations
published: 2025-07-03
discussion: https://github.com/orgs/supabase/discussions/36850
labels:
  - edge functions
page: https://supabase.com/changelog/36850-update-to-edge-functions-regional-invocations
---

# Update to Edge Functions Regional Invocations

Edge Functions are executed in the region closest to the user making the request. This helps to reduce network latency and provide faster responses to the user.

However, if your Function performs many database or storage operations, invoking the Function in the same region as your database may provide better performance. Some situations where this might be helpful include:

- Bulk adding and editing records in your database
- Uploading files

Previously, the region could only be set via the `x-region` header in the request. However, in some instances (e.g., CORS requests, Webhooks), the headers set in the request cannot be controlled. Considering these limitations, we've also made it possible to set the region via the `forceFunctionRegion` query parameter.

```bash
# https://supabase.com/docs/guides/functions/deploy#invoking-remote-functions
curl --request POST 'https://<project_ref>.supabase.co/functions/v1/hello-world?forceFunctionRegion=eu-west-3' \
  --header 'Authorization: Bearer ANON_KEY' \
  --header 'Content-Type: application/json' \
  --data '{ "name":"Functions" }'
```

Please check the [Regional Invocations](https://supabase.com/docs/guides/functions/regional-invocation) guide for more details.
