Is there a way to fetch static / local data at build time on each page (_app / _document)? #11158
Unanswered
ConsoleTVs
asked this question in
Help
Replies: 1 comment
-
Duplicate of #10949 |
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.
-
I want to make use of the static optimization to generate a full static website (without SSR). I have some function that loads some data and I would like to have it available on every page (or maybe mutate some context?). Is there a way to do that in nextjs?
getStaticProps
does not seem to work on _app or _document.Beta Was this translation helpful? Give feedback.
All reactions