Sid
Sid
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Sid on 6/12/2024 in #questions
How can we enable experimental TRCP features?
I'm using the app router, and i'm getting type errors when trying to enable experimental TRCP features, specifically, i'm trying to enable streaming responses: https://www-git-05-01-stream-trpc.vercel.app/docs/client/links/httpBatchStreamLink#generators But adding it to the initTRCP function gives me a type error:
const t = initTRPC.context<typeof createTRPCContext>().create({
experimental: {
iterablesAndDeferreds: true,
},
transformer: superjson,
errorFormatter({ shape, error }) {
return {
...shape,
data: {
...shape.data,
zodError:
error.cause instanceof ZodError ? error.cause.flatten() : null,
},
};
},
});
const t = initTRPC.context<typeof createTRPCContext>().create({
experimental: {
iterablesAndDeferreds: true,
},
transformer: superjson,
errorFormatter({ shape, error }) {
return {
...shape,
data: {
...shape.data,
zodError:
error.cause instanceof ZodError ? error.cause.flatten() : null,
},
};
},
});
I've tried updating the TRCP packages, but that seems to not work. Has anyone had any luck with this?
1 replies
RRailway
Created by Sid on 4/24/2024 in #✋|help
Is there any way to override environment variables locally?
With railway run, you get all of the environment variables for that service, but is there anyway to override some of them before running the command?
4 replies
RRailway
Created by Sid on 4/17/2024 in #✋|help
TLS certificate has taken over 24 hours for a custom domain
No description
8 replies
RRailway
Created by Sid on 1/31/2024 in #✋|help
Can we determine the sequence of deployments?
I'm using Turborepo and I want to make sure my backend is deployed before my frontend, pushing to the repo will kick of both services to deploy at the same time. Is there any way to configure this?
21 replies
RRailway
Created by Sid on 1/31/2024 in #✋|help
How to set up a staging -> production workflow?
I'm trying to set up a workflow whereby a push to master will build and auto deploy to our staging environment on railway but not autodeploy on our production environment until we approve the staging environment works correctly. How can I go about doing this in railway? The docs show a "disable trigger" button but the UI has changed, and I can't find a "deploy" button anywhere
15 replies