Is getStaticProps needed with only a common.json file? #1955
Unanswered
dominictobias
asked this question in
Q&A
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, I'm wondering if it's necessary to add
getStaticProps
to every page, if the only translation file is common.json? I would imagine this one loads automatically or is that not the case?If not is it possible to use
getStaticProps
in_app.js/tsx
instead? I added it but no new props came through inpageProps
so I'm unsure if that's a valid use. Seems wasteful to have to add it to every page when every page is the same.Thanks
Beta Was this translation helpful? Give feedback.
All reactions