deploying to vercel - typeerrors
Locally - everything works great, no type errors and its all fine.
Trying to deploy to vercel and I'm encountring some errors, it feels like prisma isnt generated the same as its generating locally as a lot of things are suddenly undefined - but in my code they have their proper type.
Trying to run locally and im suddenly getting the same errors, a lot of stuff is suddenly undefined and im wondering where am I going wrong?...
npm run build
npm run build

System architecture for processing data from multiple 3rd party APIs
Hello, I need some advice on the best practices and general direction I should consider for handling data for my application.
The current data flow is outlined in the attached image. Issues I have with it:...
The current data flow is outlined in the attached image. Issues I have with it:...

Jotai migration from v1 to v2
Im trying to create an hook with useHydrateAtoms to reuse in different components:
```ts
import type { WritableAtom } from "jotai";
import { useHydrateAtoms } from "jotai/utils";
import type { ReactNode } from "react";...
API's to update database - One POST path to update whole object or multiple?
I'm trying to understand what the common/best practice is for creating an API to update my database. Simple basic stuff, I'm just not familiar with what's common.
If I have a Settings document/table and it has subsections like appearance, privacy, user_details, account_info, etc. Is it more common to...
1) Make the API mirror the prisma update function, so I'd create ONE REST API to the settings such that you can pass in any part of the settings and update the table?
2) Separate it out into the sections above so you have a REST API for each section so at least 4 POST routes to update the settings...
Can I use YUP with t3stack?
Hi, I have a bunch of validators already written with YUP, can i safely use it with t3stack? I can see that the trpc has support for it but just want to make sure that there is nothing t3stack specfic
Buying domains and emails
Any good service for this?
I tried GoDaddy but I despise their Microsoft service. I hate that it's Outlook
Rather have Google Workspace...
Prebuild transformations to codebase?
Hey all, due to some bundling issues with preview pages (pages that pull live from a cms) components are 'leaking' through to the client side when they shouldnt. Now as a temporary fix im going to make a branch with the preview logic and the production branch with the preview logic commented out. Instead of manually doing this, is there some sort of node package that's recommended to transform my pages.tsx and "uncomment" the preview logic based on what branch its building from i.e.
NEXT_PUBLIC_VERCEL_GIT_COMMIT_REF?
Any advice/ideas are welcome!...css sibling selector
Given this HTML, how do I target the
<div data-rehype-pretty-code-title> only if the SVG with data-language-icon is present?
I'm guessing some ~ ?...
prisma relations generated types
So I've ran to a problem where the generated types from prisma don't include my relationships, I've googled a bit more and saw this was an issue for many people but not many people have any answers at all, wondered if anyone here know how to deal with this?
I've tried creating my own type with the prims getPayload and including my relationships but when fetching data it is automatically refering to the generated prisma types and I cant go around hardcoding that everywhere it seems like a bad idea...
Trying to deploy and it keeps failing because of that 😦...
Next.js + tRPC + Redis - pub/sub
Hi, I have an app made in Next.js, and I want to get some real-time log feature for it. I thought about using Redis Pub/Sub to do it, and use tRPC Subscriptions also. Ideally I want to publish a message from Next.js API Route and then handle it in tRPC subscription. But for now, I'm trying to make the simplest solution and it doesn't work. I follow docs and made needed things to use it (one diff is I replace event emitter with redis) and when I published my message it doesn't seem to be handled in subscription. Here's the code, I will be glad, if you can take a look and tell me what I'm doing wrong. Thanks in advance! 🙂
https://github.com/Bartek532/rssmarkable/pull/40...
Invalidating a single part of a larger query
I am fetching data as such
const postQuery = api.primaryRouter.getPosts.useQuery({}); and rendering as a list.
I would like to invalidate JUST a single ID, this is possible via scenario #3 here https://trpc.io/docs/reactjs/usecontext#invalidating-across-whole-routers
For example, if I later update one of the posts, I update then fetch just the updated post as follows - ...Email verified boolean not changing firebase
im using the sendemailverification from firebase to check whether an email exist or not. Everything works fine but when i click on the link sent to the users email the Emailverified boolean does not change. Ive tried using the user.reload() but it dosent work
are there options when creating a app, to setup a login using email and password?
i know it says sign up, using discord….
but are there other options at creating the app, to include?...
Best way to redirect from create page back to index
Looking for some guidance around best practice to handle form create and redirects in one step. I often only see examples of create>invalidate on the same page but haven't come across many where there is a dedicated next page for the create form that redirects to another page.
Currently, I have this setup something like this:
``` const router = useRouter();...
DayJS Relative Time bug - during T3 Stack Tutorial
This span is written the same way the tutorial is written.
Imports have been imported:...
import dayjs from "dayjs";
import relativeTime from "dayjs/plugin/relativeTime"`;
import dayjs from "dayjs";
import relativeTime from "dayjs/plugin/relativeTime"`;

TRPC: How to use different transformers
I followed the documentation on the https://trpc.io/docs/server/data-transformers page, but even after following the 4 steps I'm still getting the error:
tRPC failed on <no-path>: Cannot stringify arbitrary non-POJOs, cause: DevalueError: Cannot stringify arbitrary non-POJOs
Here's the code that probably generated that ...

