DomsoN
TTCTheo's Typesafe Cult
•Created by Lr-Projects on 1/5/2025 in #questions
How to store/design dynamic roles in jwt
Agree with that. If some data can change you shouldn't store them in JWT. Id is most important. You can store Id in JWT and then with this check user permissions with database
17 replies
TTCTheo's Typesafe Cult
•Created by I'm Not An Engineer on 12/28/2024 in #questions
Are Serverless functions the right thing for me?
I agree with that. You could use whatever you want
24 replies
TTCTheo's Typesafe Cult
•Created by I'm Not An Engineer on 12/28/2024 in #questions
Are Serverless functions the right thing for me?
For me it seems reasonable to use normal database right away. Even if you will only store minimal amount of data, database is used for that.
If you wanna use Next.js you could simply use Vercel as hosting provider. You should be able to get one postgres instance for free (included in free tier).
Overall usage of Next.js and Vercel should fit your need. This will be serverless, both with database. You could nicely utilize caching. Also you will be prepared for an app to become more popular. And at the beggining you will get that all for free with free tier.
Hope it helps ✌️
24 replies