Skip to content

Is it possible to opt out from using cookies or headers? #366

@mattiaz9

Description

@mattiaz9

Is your feature request related to a problem? Please describe.

Right now it gives me the error Locale not found in headers or cookies, returning "notFound()", most likely because I'm not using the default middleware implementation.
I don't want to use cookies or headers, since this will cause next to opt out from page caching.

Describe the solution you'd like

using setStaticParamsLocale in the root layout would be great. When I tried it didn't work. Maybe this is an issue?

Describe alternatives you've considered

--

Additional context

I'm using nextjs 14 with the app router and server components.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions