reallist
reallist
TTCTheo's Typesafe Cult
Created by reallist on 5/29/2023 in #questions
Vercel - Subdomains
Hello hello, I wanted to ask whether there's a way for me to set-up two different projects (which are in different repos), one of the repos should be hosted on the main domain, which I've already done, and the secondary project (in the second repo) should be hosted on a subdomain? I've attempted doing this, however, it's only giving me this DNS -> cname.vercel-dns.com. , which I've already set for my "www" cname record so I assume that this is not a correct way of doing it? I saw that there's an option which allows me to set-up a branch of my repo to be hosted under a different subdomain? Is that the only option which I have?
2 replies
TTCTheo's Typesafe Cult
Created by reallist on 2/22/2023 in #questions
tRPC + useSWR for fetching data from Shopify API ?
I'm currently in the process of building a custom Shopify Store running with the T3 stack. I'm using primarily tRPC in order to build most of my API's for fetching data from Shopify's API I believe that the use of useSWR and tRPC together could potentially boost the performance of the app, however, I have no idea whether this is true? Been looking for any kind of documentation on both sides, stackoverflow questions or anything on the topic but was unable to find anything except a npm package trpc-swr (but I avoid using packages that are not that well known) Now, if this can indeed help with performance and at a later stage scalability, how am I supposed to pass my tRPC procedure to the useSWR hook? Lately ChatGPT has been incredible in answering such questions for me, but considering that it has information only up until v1.3.2 of tRPC and v1 of useSWR, it isn't really helpful in this situation
8 replies
TTCTheo's Typesafe Cult
Created by reallist on 1/18/2023 in #questions
tRPC Websockets | package subpath not defined by exports
3 replies