George
Explore posts from serversTTCTheo's Typesafe Cult
•Created by Don Franklie on 2/25/2024 in #questions
Uploaded image not showing on Next app
have u tried adding the domain of the images in ur next config
4 replies
TTCTheo's Typesafe Cult
•Created by swajp on 12/21/2023 in #questions
dynamic grid
If your using tailwind, u could use the grid classes define them in an array and randomly select values in there to generate random grids col / row sizes, u could also use col-span-2 row-span-2 or whatever to get different cell sizes. You could also do this if ur not using tailwind, just gotta create the classes urself.
3 replies
TTCTheo's Typesafe Cult
•Created by sonor on 12/15/2023 in #questions
How to pass tRPC types?
So it would look like RouterOutputs[“admin_users”][“list”]
5 replies
TTCTheo's Typesafe Cult
•Created by sonor on 12/15/2023 in #questions
How to pass tRPC types?
Use the RouterOutputs type
5 replies
TTCTheo's Typesafe Cult
•Created by West side ⁉ on 10/14/2023 in #questions
Drizzle-ORM+PSQL: sorry, too many clients already
I used it to fix the same issue with some small modifications:
9 replies
TTCTheo's Typesafe Cult
•Created by West side ⁉ on 10/14/2023 in #questions
Drizzle-ORM+PSQL: sorry, too many clients already
you can checkout this link for a potential fix: https://www.answeroverflow.com/m/1146224610002600067
9 replies
TTCTheo's Typesafe Cult
•Created by George on 11/20/2023 in #questions
How to set the generated vercel preview url as the env variable for NEXTAUTH_URL
I have tried to follow this, but I am having diffiuclty making it work: https://vercel.com/guides/how-to-alias-a-preview-deployment-using-the-cli
6 replies
TTCTheo's Typesafe Cult
•Created by George on 11/20/2023 in #questions
How to set the generated vercel preview url as the env variable for NEXTAUTH_URL
Thanks for this, but I was not able to make it work,
Can I ask how you have set up your github workflow?
Also I have added a domain on vercel, that looks like this: "my-domain.vercel.app" . How do I use github action workflow to deploy to this specific domain. I am trying to setup a dev, dev-preview and prod environments, which will all have its own seperate databases on neon.
6 replies
TTCTheo's Typesafe Cult
•Created by George on 10/21/2023 in #questions
Does anyone have a working example repo of T3 stack with drizzle and postgres?
Yeh I managed to figure it out, took way too long to find where to push migrations in the drizzle docs. Thanks for this anyway, its very helpful.
4 replies
TTCTheo's Typesafe Cult
•Created by ott on 10/17/2023 in #questions
OAuth providers on vercel preview deployments with NextAuth
I am running into the same issue, did u end up finding a fix for this?
4 replies
TTCTheo's Typesafe Cult
•Created by cadams on 11/3/2023 in #questions
Do you manually create Zod schemas for your Prisma models?
You can create zod schemas from your drizzle schemas like shown here: https://orm.drizzle.team/docs/zod
11 replies
TTCTheo's Typesafe Cult
•Created by George on 8/23/2023 in #questions
Email Attachments without creating a file
Thankyou so much, this is really helpful, lifesaver.
4 replies
TTCTheo's Typesafe Cult
•Created by George on 8/2/2023 in #questions
Setting default roles on signUp, NextAuth
Thankyou for your help, I really appreciate it, are you using drizzle with t3? I kinda want to move over but since drizzle is new im kinda hesitant, also the fact that prisma does so many extra queries for simple joins seems bad.
13 replies
TTCTheo's Typesafe Cult
•Created by George on 8/2/2023 in #questions
Setting default roles on signUp, NextAuth
Hmm, fair enough, thanks for your advice, every time I implement something I am always wondering if I did it in a good way, especially when it comes to auth, is it difficult to implement to insert the user manually, do you have any resources you used that I can look at to do something like that, I have been mostly relying on the t3 setup for next auth with minor alternations
13 replies
TTCTheo's Typesafe Cult
•Created by George on 8/2/2023 in #questions
Setting default roles on signUp, NextAuth
Also on first sign in, even though there is a providerAccountID, therfore I technically should be able to find the user, but the User actually doesnt exist at that point, it only exists after the signIn callback has executed I beleive. Doesnt NextAuth have a callback for after signIn, or a signUp callback, to create the user in the DB manually?
13 replies
TTCTheo's Typesafe Cult
•Created by George on 8/2/2023 in #questions
Setting default roles on signUp, NextAuth
13 replies
TTCTheo's Typesafe Cult
•Created by George on 6/18/2023 in #questions
utils from api.useContext() not working?
For anyone who ran into a similar problem, dont name your router client, it conflicts with the stuff inside api.useContext(), renaming my router to clients fixed this issue.
2 replies
TTCTheo's Typesafe Cult
•Created by George on 3/7/2023 in #questions
Role is undefined when using NextAuth
thanks
10 replies
TTCTheo's Typesafe Cult
•Created by George on 3/7/2023 in #questions
Role is undefined when using NextAuth
turns out i just had to restart everything, including next and prisma studio and everything is working now
10 replies
TTCTheo's Typesafe Cult
•Created by George on 3/7/2023 in #questions
Role is undefined when using NextAuth
What did u use instead of an enum?
10 replies