t
tRPC
S
tRPC
•
3y ago
snöw
Cache SSG helper response
I
'm using
createProxySSGHelpers
createProxySSGHelpers
in GSSP with
ssr: false
ssr: false
in the global config
.
I trying to cache a response of a public procedure called there
, but I
'm running into a dead end
.
I tried following the
"App caching
" example in the docs
(
https://trpc.io/docs/caching#app-caching
)
, but the
responseMeta
responseMeta
option is unavailable if
ssr: false
ssr: false
.
(At least TS tells me so
)
Is it somehow possible to still have the response cached
?
Response Caching | tRPC
The below examples uses Vercel
's edge caching to serve data to your users as fast as possible
.
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
SSG helper w/ Clerk not recognizing "auth"
A
Answer Overflow / ❓-help
3y ago
Can I cache a response server-side?
M
Mark L / ❓-help
4y ago