DunnO
DunnO
TTCTheo's Typesafe Cult
Created by DunnO on 6/24/2024 in #questions
Catch Drizzle Error
No description
4 replies
TTCTheo's Typesafe Cult
Created by DunnO on 6/24/2024 in #questions
Catch Drizzle Error
No description
4 replies
TTCTheo's Typesafe Cult
Created by DunnO on 1/18/2024 in #questions
Redirect to dynamic url after log in
I tried using the signIn callback async signIn({ user, account, profile, email, credentials }) { // Redirect to the dashboard with user ID const url = "/" + user.id; return url; }, its not working because I am validating the session server side when navigating to the dashboard page export async function getServerSideProps(ctx: GetSessionParams | undefined) { const session = await getSession(ctx); if (!session) { return { redirect: { destination: "/", permanent: false, }, }; } else { return { props: {}, }; } } If I remove the getserversideprops function it works as expected. Does anyone have any suggestions how I should be implementing this?
3 replies
TTCTheo's Typesafe Cult
Created by DunnO on 4/17/2023 in #questions
Calling procedure from api endpoint
I will give this a read and a shot and let you know. Thank you for your help
9 replies
TTCTheo's Typesafe Cult
Created by DunnO on 4/17/2023 in #questions
Calling procedure from api endpoint
9 replies
TTCTheo's Typesafe Cult
Created by DunnO on 11/9/2022 in #questions
Spotify API 504 Gateway timeout
After doing a little bit of research, I am guessing that this is the limit that vercel has on executing serverless functions which in my case would be 10 seconds, but my api call could take around 2 minutes to get all of the data. Is there a way to work around this?
3 replies
TTCTheo's Typesafe Cult
Created by DunnO on 10/31/2022 in #questions
Spotify API calls using TRPC
Thank you!
7 replies
TTCTheo's Typesafe Cult
Created by DunnO on 10/31/2022 in #questions
Spotify API calls using TRPC
I would like this to be done in the back end since I am using secret keys
7 replies
TTCTheo's Typesafe Cult
Created by DunnO on 10/25/2022 in #questions
Server side trpc call
I will continue and see if I can pre load the fetch in the server
18 replies
TTCTheo's Typesafe Cult
Created by DunnO on 10/25/2022 in #questions
Server side trpc call
That worked for me
18 replies
TTCTheo's Typesafe Cult
Created by DunnO on 10/25/2022 in #questions
Server side trpc call
You guys are legends
18 replies
TTCTheo's Typesafe Cult
Created by DunnO on 10/25/2022 in #questions
Server side trpc call
18 replies
TTCTheo's Typesafe Cult
Created by DunnO on 10/25/2022 in #questions
Server side trpc call
Its expecting (opts: CreateNextContextOptions)
18 replies
TTCTheo's Typesafe Cult
Created by DunnO on 10/25/2022 in #questions
Server side trpc call
18 replies
TTCTheo's Typesafe Cult
Created by DunnO on 10/25/2022 in #questions
Server side trpc call
18 replies
TTCTheo's Typesafe Cult
Created by DunnO on 10/25/2022 in #questions
Server side trpc call
18 replies
TTCTheo's Typesafe Cult
Created by DunnO on 10/25/2022 in #questions
Server side trpc call
18 replies