Forsto
Explore posts from serversTTCTheo's Typesafe Cult
•Created by Forsto on 6/12/2023 in #questions
Best way to query data in NextJS App Dir.
Hi, since the new nextjs server actions are meant for mutating data, what would be a "proper" way of querying data in the app dir.
7 replies
TTCTheo's Typesafe Cult
•Created by Forsto on 5/31/2023 in #questions
tRPC invalid_type error with Clerk
3 replies
TTCTheo's Typesafe Cult
•Created by Forsto on 3/10/2023 in #questions
Use State and metadata API in the same component (next 13 app dir)
I have a component that's marked with "use client", because I also want to use useState but I also want to set some metadata on it, so I added this:
but i get this error when deploying on vercel:
You are attempting to export "metadata" from a component marked with "use client", which is disallowed. Either remove the export, or the "use client" directive. Read more: https://beta.nextjs.org/docs/api-reference/metadata
is there a way I could use both in the same component?
1 replies
TTCTheo's Typesafe Cult
•Created by Forsto on 2/2/2023 in #questions
Call tRPC from the Next.js API folder
I'm working on calling an event that deletes old files when calld from a github actions cron job.
this is the code:
it keeps giving me this problem at deleteOldTracks: This expression is not callable.
any suggestions on a fix?
6 replies
TTCTheo's Typesafe Cult
•Created by Forsto on 12/26/2022 in #questions
How to make a curve in CSS
8 replies
TTCTheo's Typesafe Cult
•Created by Forsto on 12/1/2022 in #questions
Re fetch an enabled tRPC query.
Hi, im running into an issue where I want to refetch a query that lists all users when a new user is added, but it only refetches when the query is disabled. this is some code I have for it.
I tried to do the button like this but for whatever reason it only works if i have the query disabled
Any help/suggestions on how to fix this would be greatly appreciated
10 replies
TTCTheo's Typesafe Cult
•Created by Forsto on 11/27/2022 in #questions
Does Prisma adapter work with credentials in NextAuth?
I'm trying to get credentials login to work with Prisma adapter, but I'm running into issues, and I saw some posts on stack overflow, that it isn't possible. Did it get updated already or do I still need to use JWT sessions?
19 replies
TTCTheo's Typesafe Cult
•Created by Forsto on 10/14/2022 in #questions
Custom fonts not working in new version of tailwindcss
I want to use custom fonts in my app but the custom fonts wont work.
tailwind.config.cjs:
global.css
I used this exact code and it worked fine in tailwind 3.0.24, but it doesn't work in 3.1.6 anyone knows what has changed/what I'm doing wrong?
2 replies
TTCTheo's Typesafe Cult
•Created by Forsto on 9/22/2022 in #questions
How do I use less bandwith?
I'm working on a project that requires a short looping video in the hero of a project. Does anyone have any suggestions on how I could lower the usage on vercel by maybe uploading it somewhere cheaper or storing it somewhere else?
8 replies