Set cookie within trpc

I'm using t3 and trpc and I have to set a cookie serverside, no errors happen, but the cookie is not included too. What is the correct way to set a cookie on a procedure?
Was this page helpful?