You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
blocks the api, but allows a separate path
Config middleware:
`
export const config = {
matcher: [
// Enable a redirect to a matching locale at the root
'/',
// Set a cookie to remember the previous locale for
// all requests that have a locale prefix
'/(ru|en)/:path*',
// Enable redirects that add missing locales
// (e.g. `/pathnames` -> `/en/pathnames`)
'/((?!api|_next|_vercel|.*\\..*).*)',
'/api/chat/all'
]
};
`
Verifications
I've verified that the problem I'm experiencing isn't covered in the docs.
I've searched for similar, existing issues on GitHub and Stack Overflow.
Description
Error "page not found" in the middleware when accessing the API
Code middleware:
`
export default async function middleware(request: NextRequest) {
}
`
Show "OK", but the error is "Page not found"
blocks the api, but allows a separate path
Config middleware:
`
export const config = {
matcher: [
// Enable a redirect to a matching locale at the root
'/',
};
`
Verifications
Mandatory reproduction URL
https://github.com/amannn/next-intl-bug-repro-app-router
Reproduction description
Steps to reproduce:
Expected behaviour
show response from api
The text was updated successfully, but these errors were encountered: