Harris
Harris
Explore posts from servers
TTCTheo'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
RRailway
Created by Harris on 4/24/2024 in #✋|help
Long init on builds
No description
8 replies
RRailway
Created by Harris on 4/24/2024 in #✋|help
How can I speed up my build time?
No description
52 replies
RRailway
Created by Harris on 4/16/2024 in #✋|help
Best way to setup back up system for my postgres?
Looking to do a backup every X number of hours
45 replies
TTCTheo's Typesafe Cult
Created by Harris on 4/10/2024 in #questions
exported type changes on import (z.zodInfer)
No description
2 replies
RRailway
Created by Harris on 4/9/2024 in #✋|help
what happens to redis?
so i have a redis based service in one of my railway projects, is anything going to happen to it based on the whole license sitiuation?
7 replies
CDCloudflare Developers
Created by Harris on 4/5/2024 in #pages-help
Vite build works locally, but fails on cloudflare
No description
5 replies
CDCloudflare Developers
Created by Harris on 3/25/2024 in #pages-help
Bun workspaces
No description
3 replies
RRailway
Created by Harris on 3/25/2024 in #✋|help
prisma client issues with monorepo workspaces
No description
87 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
RRailway
Created by Harris on 11/30/2023 in #✋|help
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
RRailway
Created by Harris on 11/29/2023 in #✋|help
Setting up PgBouncer
No description
331 replies
TTCTheo's Typesafe Cult
Created by Harris on 11/29/2023 in #questions
Google OAuth + Vercel Preview Deployments?
No description
2 replies
RRailway
Created by Harris on 11/28/2023 in #✋|help
Application error: a client-side exception has occurred |
No description
25 replies
RRailway
Created by Harris on 11/28/2023 in #✋|help
How to dismiss changes between environments?
No description
10 replies
RRailway
Created by Harris on 11/28/2023 in #✋|help
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
RRailway
Created by Harris on 11/27/2023 in #✋|help
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
RRailway
Created by Harris on 11/24/2023 in #✋|help
is it possible to have seperate # of replicas for dev environment rather than main?
for some reason whenever I change my forked environment (dev), main gets updated too
9 replies
RRailway
Created by Harris on 11/23/2023 in #✋|help
Switched back to bun as package manager, do I still need it in nixpacks.toml?
[phases.setup]
nixpkgsArchive = 'f53263caceb5f2a92eb2269e8eed9ef7a065fb7a' # https://github.com/NixOS/nixpkgs/commit/f53263caceb5f2a92eb2269e8eed9ef7a065fb7a
nixPkgs = ['...', 'bun']
nixLibs = ['...', 'openssl']
[phases.setup]
nixpkgsArchive = 'f53263caceb5f2a92eb2269e8eed9ef7a065fb7a' # https://github.com/NixOS/nixpkgs/commit/f53263caceb5f2a92eb2269e8eed9ef7a065fb7a
nixPkgs = ['...', 'bun']
nixLibs = ['...', 'openssl']
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
RRailway
Created by Harris on 11/18/2023 in #✋|help
Prisma cannot find the required `libssl` system library in your system. Please install openssl-3.0.x
No description
151 replies