Chen
Chen
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Chen on 1/18/2024 in #questions
Running TSC on tRPC client runs type checking on tRPC server
I have a pnpm monorepo with a Vite client and a tRPC backend (sst lambda although the specifics shouldn’t matter). Whenever I run tsc to type check the client, it follows the import to the router and proceeds to apply all of the client package’s rules to the server package. Is this a known/common issue? I realise it’s not directly a tRPC problem but it seems like something other people should have run into.
3 replies
TTCTheo's Typesafe Cult
Created by Chen on 5/24/2023 in #questions
Can you use NextJS rewrites *only* in development?
My company is incrementally adopting Next (hooray) - but the app is currently being statically exported and served from a Spring Boot app for now (boo). I’d like to have a setup similar to Vite’s server.config where requests to /api can be proxied to an external server during development, but not in production. However, next doesn’t seem to allow output: export and rewrites at the same time, but I don’t mind if rewrites stops working in production.
1 replies
TTCTheo's Typesafe Cult
Created by Chen on 4/7/2023 in #questions
How can I 'sell' React to a workplace of dinosaur devs who hate javascript?
I work at a very large and old company where for various reasons, they're always at least 10 years behind on tech. Until a few years ago, their UIs were all in Java Swing, now they're trying to move to ExtJS. It's hell. Nobody has any motivation to improve their products, everyone is miserable and struggling with the awful tech, including me. It's like they don't know there are better options and refuse to look for them. I don't get it. I can quit, but I kinda want to just see if I can make any impact at all. How can I make my miserable, uninspired, dinosaur colleagues see the benefits of JavaScript, TS, etc.? They're currently in the mindset where they see something slightly unusual like () => {} and just mentally check out. It's infuriating. I'm probably the newest person there, and it's hard to be taken seriously when the next youngest person on my team is twice my age. Idk what replies I'm expecting, I guess I just wanted to rant.
56 replies