Harris
Explore posts from serversTTCTheo's Typesafe Cult
•Created by Harris on 4/28/2024 in #questions
Has anyone used JSON Patch with an authoritative server state?
Has anyone implemented JSON Patch over WebSocket?
It seems like it is just what I need, but there's a twist:
- I need the server to be authoritative
- but users should be able to initiate some changes optimistically (like adding a message to a chat)
What's the best approach here? Do I need to write some a parser of the JSON patch object to see if it's an authorized operation?
Right now I'm thinking that perhaps the patches are sent only one way (server -> client) and the client sends specific request objects to trigger changes e.g. SendMessageRequest
but perhaps there is a more generalized way where the client can send any patch, and the server just checks to see if it's valid?
2 replies
TTCTheo's Typesafe Cult
•Created by Harris on 4/10/2024 in #questions
exported type changes on import (z.zodInfer)
2 replies
CDCloudflare Developers
•Created by Harris on 4/5/2024 in #pages-help
Vite build works locally, but fails on cloudflare
5 replies
TTCTheo's Typesafe Cult
•Created by Harris on 12/9/2023 in #questions
Gradient background blur
Does anyone know how to create a background blur on a linear gradient that decreases the intensity of the blur from full strength to 0 with CSS?
2 replies
Limit ENV vars sent to Vercel
Is there a way to limit the env vars that are sent to Vercel as part of the Railway x Vercel integration?
Sending over every variable makes things a little messy on the Vercel side of things, especially with more than 1 service
5 replies
TTCTheo's Typesafe Cult
•Created by Harris on 11/29/2023 in #questions
Google OAuth + Vercel Preview Deployments?
2 replies
https://infisical.com/ says it plays nicely with Railway, but how does it handle variable references
I'm kind of tired of having .env's everywhere and keeping track of them and this seems like a really solid solution, but I want to make sure it plays nicely with Railway, specifically variable references which I use for private networking
11 replies
How close is my Redis & Application when deployed on Railway?
Would it be two pods on the same machine? Two pods in a magic EKS cluster in the same region?
I'm trying to gain a better mental model of it all. One thing I know is accessing Redis (in my same project) should be faster than access a Neon DB in the same geographic region but not guranteed to be on the same datacenter.
121 replies
Switched back to bun as package manager, do I still need it in nixpacks.toml?
This is my current nixpacks toml, previously I was using npm because of a fatal bun bug with turborepo, but Jarred help me with a fix (and it'll be prevented going forward in 1.0.15).
Do I still need to explcitly declare bun as a nixPkg in my nixpacks.toml? I think I can remove it, but if I remember correctly, the default is an older version of Bun.
Is there a way I can always use latest?
515 replies