tunnel route example for Nextjs 13/14 #9455
Replies: 1 comment
-
It seems that this api route was somehow automatically created, I thought I have to create it myself... I was getting 404 because of my middleware configuration with next-intl. I fixed it by adding // BEFORE
export const config = {
// Skip all paths that aren't pages that you'd like to internationalize
matcher: ["/((?!api|_next|.*\\..*).*)"],
};
// AFTER
export const config = {
// Skip all paths that aren't pages that you'd like to internationalize
matcher: ["/((?!api|_next|monitoring|.*\\..*).*)"],
}; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey I installed Sentry with Nextjs using a wizard and now I would like to set up a tunnel route to prevent adblockers from blocking requests. However, I cannot find any example of how this route should look like, what should be the code...
Beta Was this translation helpful? Give feedback.
All reactions