Skip to content

Edge runtime regions not working when integrating with Sentry #47404

Closed as not planned
@Cow258

Description

@Cow258

Environment

SaaS (https://sentry.io/)

Version

No response

Link

No response

DSN

https://756fac6d7d514f5db62c7f0bc5a0f53e@o4504872119566336.ingest.sentry.io/4504872145059840

Steps to Reproduce

Link to the code that reproduces this issue

https://github.com/Cow258/edge-bug-demo

To Reproduce

  1. Deploy to Vercel
  2. Goto https://****.vercel/api/hello
  3. Open DevTool for the response headers
  4. You will find the region is different from 'sin1'

https://edge-bug-demo.vercel.app/api/hello

Expected Result

Expected Behavior

The region should be as same as the config when integrating with Sentry
image

Actual Result

I set the regions to ['sin1'], but it still global after deployed to Vercel and integrating with Sentry

export const config = {
  runtime: 'edge',
  regions: ['sin1'],
}

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions