frenetic.ts
TTCTheo's Typesafe Cult
•Created by Christian Lind on 4/21/2023 in #questions
Bad performance using planetscale, vercel, prisma
I think my Planetscale instance exists in Frankfurt, didnt you have that option? I dont know where the Vercel server lives though. But I live in Sweden and have been using the T3-stack several times without issues. So it shouldnt atleast be a general problem.
50 replies
TTCTheo's Typesafe Cult
•Created by frenetic.ts on 4/16/2023 in #questions
Webhooks (localhost) in Clerk fails for the most part
Hm okay! Ye it seems like the response code is a 400 and the response itself is an empty object. Not sure why. I just relaunched localTunnel and sent a user.created event as a test in Clerks dashboard. Succeded right away 😅
What differs the testing part from my end? Webhook secret?
I put mine in the top-level .env file (create-t3-turbo).
14 replies
TTCTheo's Typesafe Cult
•Created by frenetic.ts on 4/16/2023 in #questions
Webhooks (localhost) in Clerk fails for the most part
Oh okay, got it! I assume that you always need to restart and swap the url in the dashboard then?
Hm, yes so I managed to get the example to work one time (the data from the payload was inserted to my database). But like when I delete my user from Clerks dashboard, re-launch the localTunnel, re-launch the dev environment and signs in, it doesnt create a new user. However, I often see an event in the Logs, but it spins around at ”Attempting”.
Any ideas what I might be doing wrong?
14 replies
TTCTheo's Typesafe Cult
•Created by frenetic.ts on 4/11/2023 in #questions
Best practice to re-route user if no session exists with t3
I am using NextAuth with PlanetScale. Have some memory that middlewares isn’t implemented yet for database sessions, only for JWT sessions.
Any examples or solutions of usage with NextAuth and PlanetScale?
8 replies
TTCTheo's Typesafe Cult
•Created by josh-dev627 on 4/11/2023 in #questions
Hi guys! So I'm planning to buy a domain from vercel like app.co
I bought my domain at GoDaddy instead since I had domains there since before. Then just add that one to Vercel instead.
3 replies