Loading only the text-keys that are in use for page #2274
jorgenboganes
started this conversation in
General
Replies: 0 comments
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.
-
As our project is growing, we are getting quite a large file with translations, and followingly Next.js is complaining more and more:
Warning: data for page "/bundles" is 579 kB which exceeds the threshold of 128 kB, this amount of data can reduce performance.
Does anyone know of a way I can check exactly which keys every page uses, and load only those?
I know I can separate the textfiles into namespaces, but we have a ton of pages that are only slightly different, sharing a lot of text.
Beta Was this translation helpful? Give feedback.
All reactions