Rafael Corrêa
Explore posts from serversTTCTheo's Typesafe Cult
•Created by Rafael Corrêa on 11/9/2023 in #questions
Set cookie within trpc
and thats what im doing, the print shows me trying to bind the cookies to the headers
26 replies
TTCTheo's Typesafe Cult
•Created by Rafael Corrêa on 11/9/2023 in #questions
Set cookie within trpc
I wouldnt be able to call this function from a client component
26 replies
TTCTheo's Typesafe Cult
•Created by Rafael Corrêa on 11/9/2023 in #questions
Set cookie within trpc
this is the trpc/server.ts file
26 replies
TTCTheo's Typesafe Cult
•Created by Rafael Corrêa on 11/9/2023 in #questions
Set cookie within trpc
26 replies
TTCTheo's Typesafe Cult
•Created by Rafael Corrêa on 11/9/2023 in #questions
Set cookie within trpc
Its working when I use it outside of trpc (aka server actions), but somehow it wont work with trpc for me
26 replies
TTCTheo's Typesafe Cult
•Created by Rafael Corrêa on 11/9/2023 in #questions
Set cookie within trpc
I know about this, but it wont work, trpc wont send the cookies
26 replies
TTCTheo's Typesafe Cult
•Created by Rafael Corrêa on 11/9/2023 in #questions
Set cookie within trpc
App router
26 replies
TTCTheo's Typesafe Cult
•Created by Liam on 5/7/2023 in #questions
How does turborepo handle node_modules packages?
if Im not mistaken (because I dont use prettier), you can have a root file for prettier and specialize/extend it on each project for their necessities. I believe there are examples online on how to better setup this.
7 replies
TTCTheo's Typesafe Cult
•Created by kevinka on 5/7/2023 in #questions
Should I share packages on Turborepo?
I usually go with yarn, they are really good at resolving dependencies in monorepo. Also allowing you to self reference packages inside its context, so you don't actually have to transpile/move/publish code.
6 replies
TTCTheo's Typesafe Cult
•Created by kevinka on 5/7/2023 in #questions
Should I share packages on Turborepo?
Yes, not actually turbo, I think that is a package manager level of organization (yarn, npm, dont use pnpm with monorepos). Thats why you also need to be careful with versioning, because if there is different versions, it will start to create a mess.
tools: syncpack, taze (there are many others, but I use those)
6 replies
TTCTheo's Typesafe Cult
•Created by kevinka on 5/7/2023 in #questions
Should I share packages on Turborepo?
Monorepos share their packages instantiating them on the root node_modules, there are many tools that allow you to sync dependencies on a monorepo too.
Also, avoid putting project level packages in package.json root, in the root its usually indicated to put global scope packages (such as linting).
6 replies
TTCTheo's Typesafe Cult
•Created by Liam on 5/7/2023 in #questions
How does turborepo handle node_modules packages?
From my experience, turborepo installs dependencies on the root. You can test that and see that it allows you to call a package that is being required only in another context.
Also, avoid moving packages to the root unsless they are required in global context (not because they are present in multiple places), root package.json in monorepos are usually reserved for linters, precommit hooks (dont kill me Theo), and other things that affect everything as a whole.
7 replies