tRPC SSG - Page rendering error
Hey 👋
I just set up tRPC with SSG to prefetch some data in
getServerSideProps
. I get this error when I try to load the page. Any ideas? Thanks.4 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Oh I see, thanks man
Lemme give it a read
According to the docs, I should be able to use
getServerSideProps
Also, does this mean that if I set
ssr: true
, then all queries are prefetched on my NextJS app by default?
And that if I want to enable ssr for one specific query, then I have to set ssr: false
, and use the SSG helper?