tailwind error?
Hey
I have a weird... Bug? i think. It looks like hidden class has presedence over the md:flex?
https://gyazo.com/715ab2f6df0172b4c3bbf730e83e8aa6...
weird behavior with unstable_cache
I'm trying to use drizzle with planetscale's database-js inside of an unstable_cache (to leverage the tag caching system).
```ts
export async function getArticles() {
return await unstable_cache(
async () => {...
Fetching data in server Component
Is there a way I can fetch data from my api generated in my api routes in server Component rather than writing the route handling logic in my server Component
Admin routes and security. How to set this up?
Hi! What is a good way of protecting admin routes? The ideal situation is, that whenever an user goes to an admin route it:
1. Does not fetch the data
2. Will get redirected back to a specific page
...
When would you all choose ct3a over astro?
What are the qualifiers (other than just liking it better) would you say you'd use ct3a over astro? is it when you need a more robust back end? auth? Just curious. I have a couple projects I want to do and i've not used astro yet, but ct3a might be overkill.
How to recreate 'global' props in app router?
One pattern that I use a lot that I'm not sure how to do in app router is accessing global props that were returned from getStaticProps in the root of the app.
An example of this is:
```ts...
How do I pass a blob from frontend to backend api?
I'm working on a project using next.js pages directory and langchain's pdf loader. I would like to pass a pdf from frontend to my api so that I can read the contents, create embeddings and store the vectors. I would not like to store the pdf itself. Is there an approach to this that I could work off?
add on to the file object
without changing the type of
UploadedFile, can i add a field to the file object so my frontend can read it after a file is uploadedDo I need Redis with T3 Stack?
I've recently been working on a personal project and at some point I wondered if I was going to need Redis or tRPC Server Caching https://trpc.io/docs/server/caching is enough, what do you think?
Question about gradient backgrounds
How am I supposed to do an "gradient background" like the one over here: https://tailwindui.com/components/marketing/sections/testimonials#component-1d4641d9b778e6e47e5cb664d4d8a683
I cant figure out if its a background-url with an SVG background, or a gradient with blur.
I DO USE TAILWIND SO IT WOULD BE GREAT IF I COULD DO IT USING TAILWIND CLASSES...
Error:localhost redirected too many times
Whenever the user is authenticated and a web page is refreshed I keep getting this error "error:localhost redirected too many times try to clear cookies". Using codes below b
```ts
import { redirect } from 'next/navigation'
import { cookies } from 'next/headers'
import { verify,sign } from "jsonwebtoken"; ...
E2E type safety between nest and next
Hi all, I'm struggling to setup a proper architecture for a new project. I'd like to use next..js as client and nest.js as server, but since I'll be working with a couple of junior devs, I'd like to ensure E2E type safety. I thought of using TRPC? but their creed goes against the nest.js dependency injection logic.
How do you manage your type safety, if anyone here uses nest ?...
@id @default(cuid()) not working in prisma
When I'm trying to create dayEvent, trpc is throwing this error:
``bash
TRPCClientError:
Invalid prisma.dayEvent.create()` invocation:
...Prisma + Zod, where to validate uniqueness
Say I have a Prisma schema with multiple unique fields (for example an ID and a URL), where do I validate the uniqueness of these fields on the server? I could use an async ZOD refinement, which makes it easy to provide a custom error message etc to the user but this is more costly DB wise. I could also just let Prisma throw, but formatting a custom error message there is a bit of a pain. It's possible to check the type of the error and implement custom logic based on the code, but the field on which the error is thrown is passed through
meta.target which doesn't seem to be properly typed. This results in some quite ugly code checking the code of the error first, checking if there is a meta , a target and checking if that is an array.
https://www.prisma.io/docs/reference/api-reference/error-reference#prismaclientknownrequesterror
How do you guys handle this?...Email with Vercel
Hi I have a website and a domain which I baught on vercel. Now I would like to add a custom email with my domain name. I would appreciate if someone could teach me how to set that up or could share a tutorial.
Do I have to change dns records on vercel or actually on google/icould if I want to forward it ?...
Do I have to change dns records on vercel or actually on google/icould if I want to forward it ?...
Clerk + Supabase: How to handle user account
Hello. I have setup authentication with clerk adding github and google authentication. I looking to add a process where the user could do more than just authenticate their github. I want to take the user id that clerk provides to add more information about the user.
Ideally, I get back userid, email and profile image. I want to the user to have a table on supabase where they could add a custom username (and many other details I want to recieve). How do I go about this?...
What diffing tools do you use, if any?
Hi. Can anyone recommend a good diffing tool like Kaleidoscope? https://kaleidoscope.app/
T3 App dir beta does not have react-query integrated
Does anyone have any idea how to integrate it to
create t3-app@7.13.2-beta.ca0b017...
Can't run t3
I am very noob into web development, I was following Theo's T3 stack tutorial, I had no problem downloading and installing the packages, but as I wanted to run it, it starting writing lots of things in the terminal and the local:3000 was blank white page. I don't understand what the problem is as there I s no clear error that I can see. please help me become a t3 user 😦
Solution:
thanks guys, I have just seen your answers, apperantly i had an extention that was reformating the code to a spesific lint that wasn't helping, now it's all good ❤️
Multiple Clerk apps on subdomains?
Hey, all! Right now, I have one Clerk app that has the production environment pointing to app1.example.com and everything's great.
However, when I create a second Clerk app and try to point that app's production environment to app2.example.com, I get "root domain is already in use by another application".
Does this mean there's no way to use two Clerk apps on the same domain? If so, anybody know of any good workarounds?...