Can we delete some keys dynamically to reduce the size of returning object of getStaticProps
?
#2071
Unanswered
txfs19260817
asked this question in
Q&A
Replies: 1 comment
-
This is all what's built-in: https://github.com/i18next/next-i18next#5-declaring-locale-dependencies |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Hi there, I have some large translation JSON files and next.js may complain
large-page-data
error becausegetStaticProps
returns too much data. So do we have a built-in solution to trim some unused keys to tackle this issue?Here is my workaround that modifies
initialI18nStore
directly:https://github.com/txfs19260817/falinks-teambuilder/blob/main/src/pages/pastes/%5Bid%5D.tsx#L37-L88
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions