Pluto
Pluto
TTCTheo's Typesafe Cult
Created by Pluto on 9/17/2024 in #questions
Sending arraybuffer/blob over trpc
Is it possible for me to send arraybuffer to frontend using trpc , because i think it JSON.stringifies the contents. Im hitting a api from backend which returns pdf data , when i try to send blob to frontend and convert from there to a document, it creates a blank pdf instead. Is there any way i can do it w/o uploading to aws.
2 replies
TTCTheo's Typesafe Cult
Created by Pluto on 3/23/2023 in #questions
combining prisma migration files
I've over 20 files of migrations in my codebase. Is there any way i can combine those into one in t3 environment.
1 replies
TTCTheo's Typesafe Cult
Created by Pluto on 3/15/2023 in #questions
adding required fields to a prisma table while having data
This is probably a very common issue you might've been facing. Let's say I've a table user in prisma
model User {
id Int @id() @default(autoincrement())
name String @unique
}
model User {
id Int @id() @default(autoincrement())
name String @unique
}
Now this is the table i have on prod. Later on , i want to add email field and it want it to be required. But if i try to migrate that , prisma will ask me to reset the db. Is there any workaround this , without having to make the email field optional?
5 replies
TTCTheo's Typesafe Cult
Created by Pluto on 1/23/2023 in #questions
ChatBot Options for website
Hi! I want to integrate chatbot into a website which is main website . There are plenty of options out there to start with But they all have their own dashboards from where we have to reply. Is there any service which lets me add chatbot to one of website and reply from any other website which is an internal tool for organization only That's important need . Having an extra dashboard just for chatbot feels like an overhead!
1 replies
TTCTheo's Typesafe Cult
Created by Pluto on 12/24/2022 in #questions
Using multiple git accounts in VsCode
I want to use different git account for my two projects in same device. Is it possible to do so . Without deleting git config again and again. Sorry if that's too dumb question
7 replies
TTCTheo's Typesafe Cult
Created by Pluto on 12/24/2022 in #questions
Unstyled component library recommendation
Yes. I've already gone through recommendations by t3 docs. All of the 3 libraries look amazing. But like if you were to build design system for your project what would you pick? HeadlessUI is what i was leaning towards more because it's by tailwind team itself. But it has very few components and that doesn't seem like right choice. Suggestions?
7 replies
TTCTheo's Typesafe Cult
Created by Pluto on 11/21/2022 in #questions
Unable to send file to backend in trpc
16 replies
TTCTheo's Typesafe Cult
Created by Pluto on 11/19/2022 in #questions
Host pdf files locally or online
Hi! I'm building an application where a user can upload a pdf. Is there any way i can host these files in nextjs(using ct3a with mysql) similar to how we can do that in express Also is there any free tier service which allows to host static files online which i can access using nodejs . Thanks in advance 🙂
3 replies
TTCTheo's Typesafe Cult
Created by Pluto on 10/28/2022 in #questions
how exactly bundle size works
Hi. I think it's very newbie & dumb question. But i've been trying to get my head bundle size . According to google An app's bundle size is the amount of JavaScript a user will have to download to load your app. So does that mean not each & every dependency contributes to bundle size? e.g. if im using nextjs as full stack and i have mongoose as a dependency what shouldn't contribute to client side Js. So bundle size of a page is only based on imports we have in that file? Does that mean each & every page has different bundle size because imports & data varies ? And what exactly is relation between build size & bundle size ? Also if the bundle size is based on imports . Should i be worried about build size?
8 replies
TTCTheo's Typesafe Cult
Created by Pluto on 10/25/2022 in #questions
Alternatives to redux for app state management
Hi! I know y'all don't like noobs much. But i could really use some help. Is there any better alternative to redux for app state management. Have to install 3 packages & still deal with weird lengthy syntax whenever i want to access my state.
6 replies