Skip to content

Setting up sentry for a next.js project works in localhost but not when it's served via nginx #10140

Closed Answered by AbhiPrasad
johnmantios asked this question in Q&A
Discussion options

You must be logged in to vote

When using the Next.js wizard we set up a tunnelRoute for you. This adds an API endpoint to your application that is used to forward Sentry events to the Sentry servers.

The tunnelRoute option does currently not work with self-hosted Sentry instances, so I recommend you remove the tunnelRoute option from your next config.

// next.config.js
const nextConfig = {
  sentry: {
    tunnelRoute: "/monitoring-tunnel",
  },
};

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@AbhiPrasad
Comment options

Answer selected by johnmantios
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants