calling GET, POST, DELETE, and PUT request in one next.js api file
Hi guys is it possible to call all 4 CRUD methods in one Next.js api file?
Confusion: Type annotation/ Type conversion
Hello, may anyone who has better understand help me digest the following?
In both cases the "interface" has one property of the "value" but why does one throw error while one does not?
Thanks for any help in advance....

tRCP beginner questions
I am very new to tRPC and it is too good to by true but there are some general and basics questions I have:
1. tRCP couples the client and the server together, does this mean that you can not consume a tRCP server/endpoint with different clients that you develop separately but with the same type experience?
2. are there tRCP server implementations for other languages? (Rust, Python)...
tRPC API endpoints?
Hello guys, i've been asked to implement an api route to create, validate and edit password using post methods, I'm allowed to use t3 and provide a better implementation with it...
I'm new to it and i'm trying to wrap my mind around trpc, i have been able to do queries and mutations using it from the front end. but I'm not sure if it's possible to use it in an api endpoint ex: /api/user/create, sending a req.body instead of "input"?
sorry im a bit lost...
Deceptive Site Warning
Two of my t3 apps have been flagged by google as deceptive sites and I'm not sure what has happened. One is deployed on vercel and one is a private company app hosted in AWS. Both got the deceptive site warning overnight, with the only common link is they both use ct3a. One is using discord auth, one is using google auth.
Does anyone have an idea what this could mean?
Public app: http://style-transfer-demo.vercel.app/...

adding required fields to a prisma table while having data
This is probably a very common issue you might've been facing.
Let's say I've a table user in prisma
```
model User {...
destructuring assignment typescript error
I have a function getMoveLocation that return array [col, row]. Then I want to use it like this
But typescript yells at me Anyone maybe know solution?...
const [lastCol, lastRow] = getMoveLocation(lastSquares, squares)
const [lastCol, lastRow] = getMoveLocation(lastSquares, squares)
Type 'number[] | undefined' must have a '[Symbol.iterator]()' method that returns an iterator.
Type 'number[] | undefined' must have a '[Symbol.iterator]()' method that returns an iterator.
mp3 encoding
All I want to do is record the users audio and output a mp3 file.
I got to the point where I can record audio using the web audio api and generate an mp3 with 1 second of silence using lamejs but I am too stupid to combine these 2.
This a repo with a minimal example: https://github.com/vothvovo/recordtomp3...
Zod with types from Supabase type gen
Trying to use types from supabase typegen with Zod, but I can't figure out how. They supabase docs use this weird syntax for getting the data.
My current attempt
```js
type TaaS = Database['public']['Tables']['taas']['Row']...
Prisma Docs not working as instructed for insensitive case search. 9am and my brain hurts.
``` const serverTypes = ctx.prisma?.server.findMany({
where: {
published: true,
nsfw: false,
serverTypes: {...
tailwind css hide divide when wrapping to new line
Hey guys, I'm trying to get the styling right for my footer and I've been really struggling with getting the menu dividers to work with me. I finally found out about
divide-x but I'm running into one last small issue when the size occurs.
```html
<div className="flex flex-wrap divide-x-4 divide-black justify-evenly">
<Link href="#" className="px-8 font-bold text-blue flex-initial">...
How to create never expire refresh token?
I want to add tokens for developers to access my API. How can I do it with NextAuth, can it create refresh token that never expire?
How to handle key press events in React?
Anyone have good resources for how to handle a key left or right event in React? I see a lot of outdated or not optimal solutions that use document.
Two repos one Prisma. Lets Merge.
Good morning guys. I just started merging two repos into a Monorepo and have no idea what im doing :-). Would love some help.
I have two repos, FM and LH. FM is t3-app and LH is basically pure ts-node. They share a prisma instance.
I just copied the whole LH into FM as a subdirectory. Nothing changed in the FM git status. ...
How are you supposed to use local fonts in taliwindcss
I'm not currently using the t3 stack, but how are you supposed to use locally downloaded fonts in tailwindcss.
I tried to look at the docs but they don't include anything on local fonts and an online search leads me to outdated ones....
Always redirect to same route when logging in
Hey, I'm using the full T3 Stack. How do I tell NextAuth to redirect to a certain route when logging in/signing up? Right now, it redirects to the route I was on when I logged out.
Can I pass refetch as a prop?
Title basically..
The thing is that I am fetching all of my items in component#1, I use them there and I also pass them as a prop to component#2, there I can create a new item. thing is that I would like to use the refetch function in component#2 that comes along the useQuery (which is in component#1).
Is it even something I should do or is it a bad design choice on my end?
How do I approach this issue?...
TRPC & ReactQuery: How to check if logged in
Hi Guys,
how would you check if the current User is logged in?
I tried creating a Query which would return a Boolean, extract it into a Component and then conditionally render the Child or a NavitgateTo Component but that resulted in endless re-renders.
...
