MadaShindeInai
MadaShindeInai
Explore posts from servers
TtRPC
Created by DINO on 9/1/2024 in #❓-help
How do I create a React/Node full-stack project with tRPC?
I meant https://create.t3.gg/ T3-app setup. Just decouple NextJs from there and replace it with Remix 🙂 I may be wrong, but Idea is that you need to have both FE and BE part in your app (in the same repo). You can achieve it with Fullstack framework or maybe React + SST framework.
9 replies
TtRPC
Created by DINO on 9/1/2024 in #❓-help
How do I create a React/Node full-stack project with tRPC?
You can use Create-T3-app to create already configured app. If NextJS if not framework of your choise, you can use this setup as example.
9 replies
TtRPC
Created by brumbrum_brum on 8/17/2024 in #❓-help
Procedures with paramters.
I'm doing this 🙂 But you can check T3-app + Clerk.io integration example. They pass Clerk auth there.
9 replies
TtRPC
Created by brumbrum_brum on 8/17/2024 in #❓-help
Procedures with paramters.
You can pass any data to context and then access it in procedure
9 replies
TtRPC
Created by MadaShindeInai on 8/17/2024 in #❓-help
Prefertch() privateProcedure (Clerk) in gSSP
Ah, I needed to pass "auth" from gSSP to prefetchHelper. Works.
type getPrefetchHelperArgs = {
auth: Parameters<typeof createInnerTRPCContext>[number]["auth"];
};
export const getPrefetchHelper = ({ auth }: getPrefetchHelperArgs) => {
const prefetchHelper = createServerSideHelpers({
router: appRouter,
ctx: createInnerTRPCContext({ auth }),
transformer: superjson, // optional - adds superjson serialization
});
return prefetchHelper;
};
type getPrefetchHelperArgs = {
auth: Parameters<typeof createInnerTRPCContext>[number]["auth"];
};
export const getPrefetchHelper = ({ auth }: getPrefetchHelperArgs) => {
const prefetchHelper = createServerSideHelpers({
router: appRouter,
ctx: createInnerTRPCContext({ auth }),
transformer: superjson, // optional - adds superjson serialization
});
return prefetchHelper;
};
3 replies
TtRPC
Created by MadaShindeInai on 5/29/2023 in #❓-help
T3 app tRPC external calls
Upd. found that if using Clerk's webhooks, in opts.req.headers getting 'svix-webhooks/ ..." as user-agent. Will use that is identifier. Thank you.
10 replies
TtRPC
Created by MadaShindeInai on 5/29/2023 in #❓-help
T3 app tRPC external calls
yeah. It become a bit easier. Maybe you also can suggest an easy way to check from what domain request was sent? (To drop everything that was sent not from Clerk)
10 replies
TtRPC
Created by MadaShindeInai on 5/29/2023 in #❓-help
T3 app tRPC external calls
I'm sending a request from Clerk webhook (user.create, and maybe user update later). Maybe there are some kind of more smooth solutions for that?
10 replies
TTCTheo's Typesafe Cult
Created by MadaShindeInai on 5/19/2023 in #questions
Building T3 app with Docker. Image access issue (sharp).
Well, the problem was with building and running image on mac m1. Config (docker image) that works with Images too slow locally, works good on railway. And do not work on fly.io at all ☹️
6 replies
TTCTheo's Typesafe Cult
Created by MadaShindeInai on 5/19/2023 in #questions
Building T3 app with Docker. Image access issue (sharp).
6 replies
TTCTheo's Typesafe Cult
Created by MadaShindeInai on 5/19/2023 in #questions
Building T3 app with Docker. Image access issue (sharp).
6 replies
TTCTheo's Typesafe Cult
Created by MadaShindeInai on 5/19/2023 in #questions
Building T3 app with Docker. Image access issue (sharp).
6 replies
TTCTheo's Typesafe Cult
Created by MadaShindeInai on 5/19/2023 in #questions
Building T3 app with Docker. Image access issue (sharp).
upd. created a clear next-app, copied images, installed sharp, add the same code for <Images />, built it with docker, everything works fine. The difference i see is that T3 latest version have next version 13.4.1 and create next app - 13.4.3. Trying to check if updating next version helps
6 replies
TTCTheo's Typesafe Cult
Created by Meyer on 5/18/2023 in #questions
Chat with trpc / nextjs / vercel
15 replies
TTCTheo's Typesafe Cult
Created by Morraez on 5/13/2023 in #questions
T3 for a chat app
Interesting thing is how to make that ws connection protected, as it is external app.
17 replies
TTCTheo's Typesafe Cult
Created by Morraez on 5/13/2023 in #questions
T3 for a chat app
Hmm, and what about building separate ws server in NodeJS, hosting it somewhere, and connecting to it from NextJS client (from component)? I really do not want to leave Vercel, as deploying create-t3-turbo somewhere is a f..ken hell
17 replies
TTCTheo's Typesafe Cult
Created by Morraez on 5/13/2023 in #questions
T3 for a chat app
Hmm, maybe server-side events can be somehow used for this purposes? thinkies
17 replies
TTCTheo's Typesafe Cult
Created by Morraez on 5/13/2023 in #questions
T3 for a chat app
Hmm, looks like there are 2 ways: drop idea of building chat (build it as http / use 3-rd party embedded solution) or leave Vercel (welcome to the Docker world and getting lots of devops job)
17 replies
TTCTheo's Typesafe Cult
Created by MadaShindeInai on 5/13/2023 in #questions
Removing unused imports
Saw that in some issue. Tried, but it did not solve an issue. Will try one more tme
4 replies