rubberburger
rubberburger
Explore posts from servers
TTCTheo's Typesafe Cult
Created by rubberburger on 3/30/2025 in #questions
Updating a different table based on changes from a settings table
im not exactly sure why it takes a while to update the 100 rows but my guess is is that the transaction involves querying a few more databases (for settings) before the calculation is ran the calculations themselves are 99% handled by express though with the DB only doing a COALESCE for the current approach - - i pass in an array of timesheet IDs through the api - i do a for loop inside the transaction looping over every timesheet ID - i do join queries do get settings associated with an employee (using drizzle's 'with' function) - do some calculations, then finally update the timesheet is the for loop somehow causing the timeout? i just realized i was doing a for loop inside a transaction i do use an ORM (drizzle)
3 replies
TTCTheo's Typesafe Cult
Created by shawn on 3/26/2025 in #questions
Auth in middleware
yeah i only use them for redirects my backend handles auth
27 replies
TTCTheo's Typesafe Cult
Created by shawn on 3/26/2025 in #questions
Auth in middleware
aight thanks ig
27 replies
TTCTheo's Typesafe Cult
Created by shawn on 3/26/2025 in #questions
Auth in middleware
---- btw im asking this because out of a bit of concern for my own apps i properly secure my API endpoints, but i just hope that bypassing layout.tsx doesn't somehow compromise my api endpoints that in ways i can't imagine
27 replies
TTCTheo's Typesafe Cult
Created by shawn on 3/26/2025 in #questions
Auth in middleware
yup yup which is why i was confused as to how the hacker theo mentioned in his video was able to do apparently malicious things by bypassing his auth checks in his layouts i mean theo did show some snippets of his (server actiosn/api) code and they did seem secure to me which is why i was wondering how is it even possible to bypass api layer security just because they managed to bypass auth checks in the layout
27 replies
TTCTheo's Typesafe Cult
Created by shawn on 3/26/2025 in #questions
Auth in middleware
ive also watched theo's video but i honestly don't get why this is necessary doesn't the data come from the api endpoints anyway? as long as the endpoints are properly secured, it doesn't even matter even if they reach the pages am i missing something?
27 replies
TTCTheo's Typesafe Cult
Created by rubberburger on 3/9/2025 in #questions
Mac: Disable window resize when moving mouse pointer to right edge of screen
you mean when i install rectangle, it that removes that dragabble cursor that appears?
4 replies
TTCTheo's Typesafe Cult
Created by rubberburger on 1/12/2025 in #questions
15in MBA vs 14in MBP
@Rivenris aight thanks, ig ill prob go with the 14inch MBP 24GB i'm guessing setups with an external monitor for this are good enough for home use?
8 replies
TTCTheo's Typesafe Cult
Created by shadax on 1/12/2025 in #questions
CSR, SSR or server components?
i see, makes sense then
9 replies
TTCTheo's Typesafe Cult
Created by shadax on 1/12/2025 in #questions
CSR, SSR or server components?
just watched theo's vid on the chat app i'm not too deep into the new features of server components and nextjs yet, so i'm having a bit of trouble undestanding why theo had to use react router to make a remix-like experience isn't just using use client enough? (it's what i do for an app that's 95% client-side) am i missing something?
9 replies
TTCTheo's Typesafe Cult
Created by Radu on 11/16/2024 in #questions
Nextjs deployment on Docker
i see, thanks
22 replies
TTCTheo's Typesafe Cult
Created by Radu on 11/16/2024 in #questions
Nextjs deployment on Docker
per month? no bugs so far?
22 replies
TTCTheo's Typesafe Cult
Created by Radu on 11/16/2024 in #questions
Nextjs deployment on Docker
i see, that's reassuring
22 replies
TTCTheo's Typesafe Cult
Created by Radu on 11/16/2024 in #questions
Nextjs deployment on Docker
yeah, i'm also using coolify rn with docker compose and hetzner do you use it for a side project? or some large-scale at work? i'm just a bit concerned because CJ (from syntax fm) said on his tutorial that he personally wouldn't use coolify yet bc it still has bugs (and also still in beta) so was wondering if you encountered any bugs how much traffic do you get btw? im planning to use it for an enterprise app if it's stable enough (otherwise i might pick dokku or something)
22 replies
TTCTheo's Typesafe Cult
Created by Radu on 11/16/2024 in #questions
Nextjs deployment on Docker
how is the experience so far? how many users do you have daily? i'm planning on using coolify in prod
22 replies
TTCTheo's Typesafe Cult
Created by Amit on 4/10/2023 in #questions
trpc alternatives like zodios, ts-rest
just finished setting up ts-rest a while ago haven't tested it extensively yet but looks good so far
11 replies
CDCloudflare Developers
Created by rubberburger on 9/28/2024 in #pages-help
How to point CF domain to CF pages project
weird.. it works now tho i didn't change anything do the bulk redirects take some time to propagate?
8 replies
CDCloudflare Developers
Created by rubberburger on 9/28/2024 in #pages-help
How to point CF domain to CF pages project
No description
8 replies