nyanSpruk
TTCTheo's Typesafe Cult
•Created by nyanSpruk on 5/4/2024 in #questions
Api Route or Server Action for ImageKit upload
I am currently trying to make a form and on submit want to upload an image to Imagekit. Currently I am trying to do it with a server action, but am not sure if I should use a api route instead. That is because of the following error:
My code looks like this:
My server action
Thank You
2 replies
TTCTheo's Typesafe Cult
•Created by nyanSpruk on 4/27/2024 in #questions
t3 starter app with nextauth auth.ts config problems
i copied the code from the origina t3 app into auth.ts in root (like it is suposed to be in v5 of nextauth)
I am getting the following error:
2 replies
TTCTheo's Typesafe Cult
•Created by nyanSpruk on 4/27/2024 in #questions
Create t3 app with nextauth and new router problems
I have a question regarding the t3-createapp with nextauth.
In what file do I put my <SessionProvider> ? I would've assumed that the t3 app generator would handle that for me, but it didn't, and im not sure where to put it.
I am trying to do it in the app/layout.tsx like i did with my normal next project that im using for reference, but its not working.
the t3 nextauth documentation only has pages router and no app router documentation.
(EDIT: it may be the problem that t3 uses nextuath v4 instead of v5 (that is still in beta,That must be it) that im used to. i guess i should look into the upgrade guide)
2 replies