Skip to content
Discussion options

You must be logged in to vote

Your browser can request files like /.well-known/appspecific/com.chrome.devtools.json automatically (source). In this case, if you don't support this file, you should return a 404 (which is what you're doing).

You'll see this value in your logs because you're only validating the received locale in [locale]/layout.tsx. Layouts and pages render in parallel, therefore your log entry in (web)/layout.tsx might see an invalid [locale] value before the validation triggers notFound().

If you need the locale in other places in your app, I'd suggest to read from getLocale.

More information on parallel rendering of layouts and pages in Next.js and validation: #1722

I'll move this to a discussion sin…

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by MichalMoravik
Comment options

You must be logged in to vote
2 replies
@amannn
Comment options

@MichalMoravik
Comment options

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
bug Something isn't working unconfirmed Needs triage.
2 participants
Converted from issue

This discussion was converted from issue #1909 on June 02, 2025 09:41.