Skip to content
Discussion options

You must be logged in to vote

I found the issue – the problem was that I was importing
import { createNavigation } from "next-intl/navigation"
in the routing.ts file.

Once I moved that import to the navigation.ts file, the languages were no longer being loaded, and the middleware size dropped to 70kb.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by JJablonski02
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