Lee Robinson
08/10/2020, 4:38 PMjanpio
Adrian Roach
08/10/2020, 5:09 PMPieter
08/10/2020, 5:40 PMrouter.replace()
) But getStaticProps does not have the context as its rendered outside of the scope of who is asking for it.
I'd really like to move from SSR to SSGLee Robinson
08/10/2020, 5:43 PMPieter
08/10/2020, 5:43 PMLee Robinson
08/10/2020, 5:44 PMPieter
08/10/2020, 5:44 PMLee Robinson
08/10/2020, 5:45 PMPieter
08/10/2020, 8:00 PMWhy not fetch the user data on the server?That is exactly what I am trying to do, but I need the
authorization
header to be captured and getStaticProps
does not expose the headers (as it is obviously not running at runtime with an actual user, but generated beforehand)Lee Robinson
08/10/2020, 8:01 PMgetServerSideProps
. Why not fetch the user data on the sever and not have a client side loading state?Lee Robinson
08/10/2020, 8:01 PM