Skip to content

Edge runtime regions not working when integrating with Sentry #48375

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
Cow258 opened this issue Apr 14, 2023 · 2 comments
Closed
1 task done

Edge runtime regions not working when integrating with Sentry #48375

Cow258 opened this issue Apr 14, 2023 · 2 comments
Labels
bug Issue was opened via the bug report template. Runtime Related to Node.js or Edge Runtime with Next.js.

Comments

@Cow258
Copy link
Contributor

Cow258 commented Apr 14, 2023

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 22.3.0: Thu Jan  5 20:48:54 PST 2023; root:xnu-8792.81.2~2/RELEASE_ARM64_T6000
Binaries:
  Node: 18.14.0
  npm: 9.3.1
  Yarn: 1.22.19
  pnpm: 8.2.0
Relevant packages:
  next: 13.3.1-canary.6
  eslint-config-next: 13.3.0
  react: 18.2.0
  react-dom: 18.2.0

Which area(s) of Next.js are affected? (leave empty if unsure)

Middleware / Edge (API routes, runtime)

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

Describe the Bug

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

Expected Behavior

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

Which browser are you using? (if relevant)

Chrome 111.0.5563.146

How are you deploying your application? (if relevant)

Vercel (https://edge-bug-demo.vercel.app)

@Cow258 Cow258 added the bug Issue was opened via the bug report template. label Apr 14, 2023
@github-actions github-actions bot added the Runtime Related to Node.js or Edge Runtime with Next.js. label Apr 14, 2023
@Cow258
Copy link
Contributor Author

Cow258 commented Apr 14, 2023

Sentry are tracking things related to it in this GH issue: getsentry/sentry-javascript#7450, so closing this issue since it's duplicate.

@Cow258 Cow258 closed this as completed Apr 14, 2023
@github-actions
Copy link
Contributor

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue was opened via the bug report template. Runtime Related to Node.js or Edge Runtime with Next.js.
Projects
None yet
Development

No branches or pull requests

1 participant