skeleton for rendering client component
was wondering if i could add a skeleton for my navbar client component that is in my layout.tsx
not sure how to do this...
Query tRPC the right way
If you use graphql, you can precisely query what you exactly need and avoid over fetching, so you can do something like this:
```gql
user {
id
username...
drizzle orm is overhyped
Everyone is talking about drizzle orm. we all know that vercel pays people to talk
I feel prisma DX is no match for drizzle orm no matter what they say prisma is here to stay
You may say performance ...
T3 App/tRPC/Typescript example adhering to Clean architecture?
Hi!
I am running a T3 app with Prisma and wanted to hear if you guys know any good example repository to look at for following the general principles outlined in the Clean Architecture book? Primarily keeping domain/business logic separate from framework etc. I was thinking of having all business logic in a
domain/
folder with a bunch of typescript files divided into "business functionality".
But instead of reinventing the wheel it would be cool to see a "best practice" example.
...[PRISMA] Adding method with param in result object
Hi, I have seen the documentation about adding method to the result object. I would like to add a method with parameter, NOT static method in result object. Is that possible?
https://www.prisma.io/docs/concepts/components/prisma-client/client-extensions/result#add-a-custom-method-to-the-result-object
```js...
Read and Write in Next Js 13
i am trying to read and write db.json file from api folder i am unable to do it
can anyone share code snippit which works on next js 13 api folder?...
Vercel Storage as CDN
I was looking into using the new vercel Storage stuff as an alternative to s3 for serving 100-200 static images for a Web app. I thought blob might be right but egress seems super tight? Any experiences or suggestions? Or should I just serve images elsewhere?
Image component not displaying images
Hey. So using NExtJS with the app directory, I have a card component with
```tsx
<Image
src={'/images/cover.jpeg'}
alt="back"...
Rich Text Editor
I am in need of a rich text editor for our react app where a user can do some basic formatting (bold, italics, link, heading, bullets) to a piece of content whose html will then be sent via email. I've used Draft.js in the past which I see is no longer receiving updates. I've looked briefly into Lexical, but I'm wondering if it's too low level for our use case. Any recs?
Best node local smtp server while you dev ?
what are some great local smtp server solutions you use to intercept all mails while you dev ?
Dynamic Routes with AWS Object Keys
Hi, I'm currently building a website where I need to fetch PDF's from S3. I've managed to get that working however the object key is currently hardcoded. I want to change this so that my object key gets taken from the URL. For example, if the user visits /exams/biology/photosynthesis1 it sets the object key to biology/photosynthesis1. If they visit /exams/physics/forces, it sets the object key to physics/forces. How would I do that?
I've attached my code below:...
Exhaustive Switch in TypeScript
Hello, I am currently writing a little backend code with TypeScript, and I want to use some exhaustive switch to give back my client proper errors.
However, the types are not work as what I expected, can someone help me?
TS Playground: https://tsplay.dev/w29YrW
I don't understand why both
result1
on line 25 and result2
on line 42 are of type ErrorResult
but behaves differently when I switch on them....NextJS Server Actions vs Traditional API
Can someone explain the benefit of using RSC data fetching/server actions as opposed to a traditional API (GraphQL, tRPC, REST)?
It seems that traditional “API” functionality such as middleware, external consumers, etc. is not something that can be done with server actions. To me, this seems like a bit of a step backwards in the context of a web app.
Are server actions intended to serve a different role entirely? I’m primarily a backend dev, so the concept of not having a traditional backend/API layer is still new to me....
It seems that traditional “API” functionality such as middleware, external consumers, etc. is not something that can be done with server actions. To me, this seems like a bit of a step backwards in the context of a web app.
Are server actions intended to serve a different role entirely? I’m primarily a backend dev, so the concept of not having a traditional backend/API layer is still new to me....
Tailwind changing causes error in next
A lot of times when i alter my tailwind, i get this error. When i reload the page the error goes away. Anyone know how to fix it?'

t3 stack
When will get nextjs app router support for t3 stack ?, I know trpc is still working to make its stable release! But by when can we expect it in t3 stack ?
Best way to store heavily read/edited pdf files : mysql BLOB in db or store as files
I'm building an app that works heavily on pdf files (constantly stored and read , modified ) , would it be to store them in a file storage system and and load bytes to edit them or store them directly as bytes in the db. Files would typically be 100kb - 1/2 mb max. I'm confortable with either Prisma or Drizzle. I'm also using Planetscale and Uploadthing.
WHEN to not use SSR?
can someone explain to me when not to use SSR? I never want to see a loading indicator when i open a new page. So i dont really understand when not to use it. In the past i've generally used SSR on all slug pages and not or some index pages that are not important for SEO. But why not just use SSR with revalidation on every single page? The pages load faster and the data is never stale either way so why would i not just use this across the whole applciation?
Chrome extension Google Auth
Hi everyone!
I am trying to figure out how I can authenticate my users on my chrome extension using Google Auth. Does anyone have experience with this?...
Vercel Build, Module not found: Can't resolve path/to/Component
Builds fine locally...
```
[21:35:38.579] Running build in Washington, D.C., USA (East) – iad1
[21:35:38.636] Cloning github.com/niebag/sales-portal-next (Branch: staging, Commit: 9324ee0)...