shawn
TTCTheo's Typesafe Cult
•Created by shawn on 3/25/2025 in #questions
Files uploaded, but client and server never reach onUploadComplete
Turns out that was the only place I needed to make that db call, so made more sense to just do it direcly instead of putting it in a procedure
6 replies
TTCTheo's Typesafe Cult
•Created by shawn on 3/25/2025 in #questions
Files uploaded, but client and server never reach onUploadComplete
I'm very new, so I'm not sure exactly what the source of my issue was. But the solution for me was to make the db call directly in onUploadComplete instead of using tRPC
6 replies
TTCTheo's Typesafe Cult
•Created by shawn on 3/26/2025 in #questions
Auth in middleware
Which is a bit absurd. Don't understand how it would be possible to bypass a layout to get to a page, but nbd. I don't have that many protected pages in my app anyway
27 replies
TTCTheo's Typesafe Cult
•Created by shawn on 3/26/2025 in #questions
Auth in middleware
Video was super helpful. I wasn't doing any auth checks in middleware, but it was still good to learn about how it works in next. Biggest takeaway for me was that I have to move auth checks out of layouts lol
27 replies
TTCTheo's Typesafe Cult
•Created by shawn on 3/26/2025 in #questions
Auth in middleware
Gotcha, that makes sense. I don't have the best understanding of the inner workings of middleware, so I'm excited for that vid to come out. Thanks for the clarification!
27 replies