Zod in commercial projects (work)
Do you use Zod in your projects at work?
A new one is starting for me, but we are holding back with the decision (we are considering Yup), because we are afraid that there may be a lot of work with inputs in forms that are dependent on each other (for example, if the user selects a checkbox, this field becomes mandatory, otherwise not, or if the value of one is more than 200 then the other must be less than 500). PS: We dont use tRPC
Do you have any experience?...
React rendering on different viewport
I'm currently making a custom Navbar with drop-downs, with should behave differently depending on a viewport, is it better to have same navbar written twice with html and hidden with css or rather change functionality of one depending on a viewport with React?
Question: Working with prisma JSON types
I've had this "thing" with prisma + TS after switching to it for a while so I was wondering how are you people properly parsing types of JSON fields prisma,
suppose I have some model
```
model SomeModel {...
api calls don't work in vercel
I'm trying to call my NextJS API:
If I try to write
const res = await fetch("/api/commands"); I get the error 'failed to parse URL' despite the API endpoint clearly existing and being accessible via http://localhost:3000/api/commands.
To get around this, I declared a base URL variable so I could at least make it work in localhost and hopefully Vercel too (according to Vercel's docs they have a VERCEL_URL that points to the deployment's URL):
```js...Raw HTTP Requests to TRPC
Hey,
I have an api route that I need to create in my nextjs app that will be called from a non-javascript client.
How would u make a http POST request to a TRPC route?...
Any Benefits to using Auth0 in Next-Auth?
Hey, currently working on an expo app that uses Auth0 for auth. Planning on using it aswell for the nextjs app. I was looking at next-auth, and it seems to provide functionality to use Auth0 as a provider.
Would there realistically be any benefits to using this? I feel like it would just be easier to use the
@auth0/nextjs-auth0 package, as next-auth just feels like an unnecessary middle man.
I do store additional data about users, i.e their products etc, and use prisma currently, but I dont strictly need next-auth for this....How do I get my mutation to return a value?
Im trying to get my mutation to return the object after its been created. My router code is
```
createAnswerCollection: publicProcedure
.input(
z.object({...
Complex State Help / Best Practice
So I am making a crafting calculator for a game where each item costs different amounts of things to create, and some of them have overlap.
For example, a rocket could take the following resources and components to create.
```ts...

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:
```typescript
import type { NextApiRequest, NextApiResponse } from "next";...
Next-auth with auth0 immediate login
I'm making an app learning t3 stack and using auth0 as my login provider for next-auth, however, once I log in whenever I log out I don't get to see the auth0 login page again, so I can't switch accounts, how to achieve this?
Video and Audio Hosting
I am building a site with a major part being able to display video and podcast content
what is the best place to host them which no to minimum amount...
Next-Auth default middleware redirect to signin page even when logged in.
NextAuth version: 4.18.8
Next version: 13.1.1
I want to make some pages that only logged in users can visit, but next-auth middleware redirect to the signin page even when logged in....

pm2 alternatives?
I use pm2 but i will need to view logs etc
But turns out pm2 is paid
Any free/open source alternatives out there?
...
MUI + Vercel => different CSS applied
When I use
npm run dev to develop my website - my css is applied "as intended" - and I have styled my MUI-components to match my needs. However, when I push it to Vercel, it seems that the custom MUI-classes, gets added last (even though the order in class='' is the same).
When rendered on Vercel, MUI-classes are the last classes in the cascade (viewed in Inspector), where as when rendered locally, MUI-classes are soms of the first in the cascade - this getting overwritten.
This results in drastic different results on dev and prod....Cant connect to localhost using t3 stack on windows
I've made a simple t3 app with discord for auth which was working great but randomly decided to stop working. Now every time I run the app and try and login it blocks localhost. I've tried all the recommended things like
>changing to wsl2
>flushing the dns
>restarting wsl
Those seem to work temporarily but then it just goes back to refused localhost. I tried on firefox, edge, and chrome and all have the same issue. On my other laptop that runs ubuntu I've had no problems at all so I am assuming its something to do with WSL. ...
Nested routers
What amount of nested routers is recommended to use. Do we need more than 1 layer aka AppRouter and 1 layer of subrouters (like Controllers)?
create t3 app with pnpm issue
i just pnpm created a t3 app with the 4 pieces and im getting this
error - Error: No QueryClient set, use QueryClientProvider to set one
(did nothing yet)...

Neat background pattern images
Has anyone got any good resources for background patterns such as the grid used on tailwinds docs?
Im mostly looking for subtle, simple, geometric patterns to use at low opacity on flat/subtle gradient background....
TinyMCE in react - generates wrong style syntax
I want to use TinyMCE text editor in react, but the text it generates uses style tags on the generated elements, that is written for html and not JSX.
Anyone experienced with it?...
return relation in nested write in prisma
I have two models that looks as such: ```ts
model Card {
id String @id @default(uuid())
createdAt DateTime @default(now())
title String...