Theo's Typesafe Cult

TTC

Theo's Typesafe Cult

Join the community to ask questions about Theo's Typesafe Cult and get answers from other members.

Join

Is SQLite really faster reads than MySQL (in low concurrency apps)?

Tested with local DBs and same prisma frontend MySQL had 5-6 times the loading times for big sort queries (top 100 of a huge scoreboard).

Has anyone faced Error read EINVAL when deploying NextJs to CPanel?

I'm trying to deploy NextJs application to CPanel, followed official documentation on creating a custom server, getting Error read EINVAL code in logs.

does using github co pilot always makes me a noob ?

I recently started using github co pilot and now i am becoming to lazy to type etc because most times it predictions are so accurate Is this a bad idea?...

Nextjs sitemap header error

I am generating my sitemap using this package: https://github.com/iamvishnusankar/next-sitemap I have following: ```ts const setHeader = async (context: GetServerSidePropsContext, chunk: { loc: string }[]) => {...

Should I upgrade my Next12 T3 project to v13? I am not going to use App folder

I do want to upgrade my project next12 to v13 but I am worrying to do it. Will there be any problems? I want to use Next Font

Dictionary search like Jisho.org

As the title states I'm trying to achieve something similar to https://jisho.org for searching Japanese characters / expressions (as a learning project). Their search allows you to input anything (see https://jisho.org/docs) and then returns data from multiple sources (characters, names, expressions, sentences) in less than a second. I've got my data ready but I'm not really sure how to proceed now, SQL seems to not be what I need here but I don't really have experience with anything else. How would you guys tackle this ?...

switch account flow with google nextauth

Is it possible to allow users to change their account with next-auth? IE they click a button, and they're taken to the google "select account" page to choose a different account?

How to display two divs in exact same position using tailwind

Hi everyone, what's the best way display two divs on top of each other in the exact same position using tailwind? I've found some tutorials that mention using grid-area: https://css-tricks.com/positioning-overlay-content-with-css-grid/#aa-the-overlay-grid-area ...

Integrate video conferencing

Can you recommend a good service provider for creating video conferences? I want it to be as simple as possible for my users (and me). Ideally a user can create a meeting link in my app, afterwards the video conferencing is handled by the external provider (allowing guests in, chatting, screen-sharing, …). Something like Google Meet, which I can integrate in my own SaaS would be ideal

next-auth example with multiple auth strategies?

Wondering if anyone has a good working example using multiple auth strategies with next.js. I’ve been having issues getting credentials auth working with other strategies. It’s odd because I can use credentials auth as long as I don’t use it in conjunction with the other strategies.

Is there a way to improve the way I do type definition of the argument here with the zod object?

```typescript const exampleQuery = async ( input: { text?: string | null | undefined } | null | undefined ) => { return {...

Simulate HLS Live Stream from Non-Live Source

I'm working on a video player (it's a sports video tagging AI magic kind of thing) and we have a backend already set up that a) gets the video stream from cameras b) creates video segments and uploads it to some google cloud bucket c) something updates the m3u8 file as the upload is happening ...

Sentry with Next.js in an Nx monorepo?

Anyone got this up and running? Can't seem to figure it out

is t3 stack good enough?

So basically i am trying to see ways to cut production cost etc We consider moving our infrastructure and rebuilding with T3 stack But based on my little research seems trpc doesn't work well with websockets and this is a most have for our platform because its similar to a...

Dripsy Intellisense issues with TS 4.5 and higher.

Someone that has any ideas why Intellisense isn't working for Dripsy with TypeScript versions higher than 4.4? 🤔 It works if I write ```ts bg: ['...

Link to page with tabs

Hi! I've got a page in my ct3a project which has three "tabs" one can open (only one at a time). By default when opening the page, the first tab is open. However I want to redirect a user to the page with a specific tab open. What'd be the best/standard way to do this?...

axiom + t3, how to log

I would like to use the req.log from next-axiom (see attached image) but I cant find req and res using t3. Any ideas on how to implement next-axiom into t3? https://github.com/axiomhq/next-axiom

Next JS Image Warning

I was getting this warning while using next/image
Image with src "<image_src>" was detected as the Largest Contentful Paint (LCP). Please add the "priority" property if this image is above the fold.
Image with src "<image_src>" was detected as the Largest Contentful Paint (LCP). Please add the "priority" property if this image is above the fold.
and when I add the priority prop to the <Image /> component I get this warning.....

Developer recommended payment processor?

I have started a small side project that sells products that are not allowed to be sold by Stripe or Paddle. I am however currently using PayPal but they are very frustrating to use as a dev and as a business. So what payment processor do you recommend?...

Retrieving data without using getServerSideProps and not exposing API keys

In my application I have a custom _app file which restricts using getServerSideProps but I need to retrive data from and external API without exposing keys, what is the best possible way to go about it?