tomharto
tomharto
Explore posts from servers
TTCTheo's Typesafe Cult
Created by tomharto on 4/28/2024 in #questions
How would you structure the backend for an application like this?
I have a simple app I want to rebuild in T3, and curious what approach would work well, I haven't used React/TRPC so don't want to work again the tools. It's a simple reading list, books grouped by month, and within each month ordered by the date the book is marked as read. I have a few ideas: 1. One call, get all the data, group it in the front end 1. One call, get all the data ordered but flat, and group it in the front end 2. Each MonthView component does a call for it's own data Would any of these be a good idea, or maybe something else completely?
5 replies
TTCTheo's Typesafe Cult
Created by tomharto on 1/12/2024 in #questions
How can I specify a `callbackUrl` when using the default NextAuth setup?
I'm using the default NextAuth setup (going to /api/auth/signin to get users to sign in), and I want to specify a callbackUrl so after login people go to /whatever. All the docs say to specify when calling signIn, but I'm not calling that. Can I specify it when using the default set up or do I need to change things around?
2 replies