tRPC SSG Helper w/ new Clerk middleware
So my goal is to do almost exactly what Theo does in his tutorial using the SSG helper for profile pages, but due to updated Clerk middleware I had to change my trpc.ts file.
I have my trpc.ts file set up identical to this:
https://github.com/perkinsjr/t3-app-clerk-minimal/blob/main/src/server/api/trpc.ts
There is a comment in there that says:
But I can't figure out how to use the "auth" object in the context when defining the SSG helper, it's always erroring when I try to set it up:
3 Replies