Driano
Driano
TTCTheo's Typesafe Cult
Created by mg on 12/19/2023 in #questions
Next 14 + TRPC + Clerk How to implement api authorization?
If that's the case, the Clerk docs for NextJS are probably your best friend: https://clerk.com/docs/quickstarts/nextjs
5 replies
TTCTheo's Typesafe Cult
Created by mg on 12/19/2023 in #questions
Next 14 + TRPC + Clerk How to implement api authorization?
Hi @mg, as far as I know there is no code changes from Next 13 to 14, but you are probably using app router, while in the tutorial Theo is using the pages router
5 replies
TTCTheo's Typesafe Cult
Created by pandakas on 12/19/2023 in #questions
Drizzle column does not exist
Have you run the db push command? Also, how is your drizzle config file?
4 replies
TTCTheo's Typesafe Cult
Created by .j0hannes on 1/24/2023 in #questions
How to check if a string is included in a certain type
Hi @j0hannes . Since TS basically gets removed from your code when you compile, AFAIK there's no way to check just by using the type you defined. You will probably have to check manually (something like ["twitter", "youtube", "spotify"].includes(value)) or use a lib such as Zod.
2 replies