🟠 CHANCE
🟠 CHANCE
TTCTheo's Typesafe Cult
Created by Integra on 11/17/2023 in #questions
tRPC splitLink wsLink/httpBatchLink explanation please
reference repo that i used for testing: https://github.com/nftchance/siwe-next-auth-trpc-websockets
9 replies
TTCTheo's Typesafe Cult
Created by Integra on 11/17/2023 in #questions
tRPC splitLink wsLink/httpBatchLink explanation please
@oddiz ^
9 replies
TTCTheo's Typesafe Cult
Created by Integra on 11/17/2023 in #questions
tRPC splitLink wsLink/httpBatchLink explanation please
The above solution will resolve your issue. Notably, it does introduce a few other caveats to work around, but it works in local and prod so probably good enough πŸ™‚
9 replies
TTCTheo's Typesafe Cult
Created by Integra on 11/17/2023 in #questions
tRPC splitLink wsLink/httpBatchLink explanation please
+1 -- Even without the use of event emitters, what is the recommended way to accomplish this? Solution: For now, you can just check if the window is present like OP mentions. It's not super ideal, but it works good enough and let's you keep moving. You will need to update your createTRPContext to work with both websockets and typical next requests.
9 replies
TTCTheo's Typesafe Cult
Created by QTPY6969 on 11/24/2023 in #questions
Multi Database Architecture in Next.js
Database prefixes or just a raw single database with a bunch of organizational tables depending on the models β€” I would not deploy a new instance for every org. The term you’re looking for is multi-tenant.
4 replies
TTCTheo's Typesafe Cult
Created by Adam on 11/22/2023 in #questions
Tagged Union in a Relational Database
Following β€” I too ended up going the json route and am still convinced there has to be a better way
5 replies