RockBacon
RockBacon
Explore posts from servers
TTCTheo's Typesafe Cult
Created by RockBacon on 8/14/2023 in #questions
t3-turbo import alias in packages
Hi all, I want to install shadcn Ui in the tailwind-config package as I have multiple nextjs apps that need to share the design system. ShadcnUI uses import aliases to help reduce complexity, such as importing the CN function from lib/utils. Typescript is very happy with the imports in the package but when I try to import a component e.g button into one of the next apps it then complains that it can't find "@/lib/utils". Is there some rule that imported packages can't have import aliases?
2 replies
TTCTheo's Typesafe Cult
Created by RockBacon on 8/1/2023 in #questions
Prevent malware upload to uploadthing/s3 bucket
Hey all, I need to allow file uploads for authenticated users which would then be read by my employees in aid of our medical services. I want to have all my bases covered with security esp in light of the recent LTT attack. How would you protect your s3/uploadthing bucket from malware, trojans etc.
7 replies
TTCTheo's Typesafe Cult
Created by RockBacon on 7/4/2023 in #questions
Plasmo messaging between content scripts and tab pages
Hi I am struggling to get my head round how I would communicate between content scripts and tab pages. TlDR I want the ability to control multiple webpages in the background with a UI, is this the best way?
2 replies
PD🧩 Plasmo Developers
Created by RockBacon on 6/30/2023 in #🔰newbie
messaging between content scripts and tab pages
Hi I am struggling to get my head round how I would communicate between content scripts and tab pages. TlDR I want the ability to control multiple webpages in the background with a UI, is this the best way?
2 replies
TTCTheo's Typesafe Cult
Created by RockBacon on 6/25/2023 in #questions
How would you check if a user is signed in for multiple endpoints.
With nextauth how could you check if a user is signed in without having to repeat the code for every endpoint. Apparently middleware when used in database session storage mode doesn't have this ability.
5 replies
TTCTheo's Typesafe Cult
Created by RockBacon on 3/17/2023 in #questions
What is the best typesafe tech stack for a chrome extension?
I am currently trying to build a chrome extension for a side project. From my research their seems to be no easy way to start if you are wishing for type-safety without having to set everything up from scratch. Is there a t3 stack equivalent for this type of application?
5 replies