T
tRPC

Dockerfile in Tubrorepo

Dockerfile in Tubrorepo

Aanan75/12/2023
Hi I have a Turborepo where I have a nextjs frontend “web” and an express backend “api” both connected through trpc (guess that’s obv). I’m kinda finding it difficult to create a docker image for this 🫠 has anybody else done this before? Any example I could take a look at? Thanks!
Nnlucas5/12/2023
If you can find a guide for hosting express in docker then it will also work for this If you have any specific issues though, we might be able to help
Aanan75/12/2023
I'm actually failing to dockerise my nextjs app. forgot to mention that.
Bbazeso5/12/2023
Can you show us your Dockerfiles ?
Aanan75/12/2023
FROM node:16-alpine RUN apk add --no-cache libc6-compat WORKDIR /app COPY . . ENV NODE_ENV=production ENV NEXT_TELEMETRY_DISABLED 1 RUN npm ci RUN npm run -w api dbgen RUN npm run -w web build EXPOSE 3000 CMD ["npm", "start", "-w", "web"] I've noticed my build fails when I use yarn and I want to use npm but in the build section, it says no lock file found and begins to use yarn. when I run that build command locally it builds perfectly.

Looking for more? Join the community!

T
tRPC

Dockerfile in Tubrorepo

Join Server
Recommended Posts
Querying external api in trpc router not workingHi guys! So I'm trying to query an api endpoint that I created through a separate node server inside[HOW TO?] Call trpc endpoints from vanilla nextJs api routesSpinoff from an og thread here: https://discordapp.com/channels/867764511159091230/10323011989901353Tutorial for setting up tRPC with Next13 app dir?Anyone has a goos tutorial (blogpost / YouTube) on setting up tRPC with Next13 app dir for both clieStack trace in Client?I've just found that in production I can see stack trace for TRPCErrors. Isin't it supposed to not sSequential batch mutationHow one would make a mutation as a sequential mutation batch call? Say I have to add 10 apples to thHave middleware require a "base" inputIs there a way to have middleware add a minimum required input, like an org id? So that every procedIs it possible to dynamically change the url of httpBatchLink in runtime?I need to do it because I have 2 domians that share the same NextJS project and I need to be able togetting manually a subdomainFor some reason I can fetch here the route /test, but not /tester/eAbility to perform a tRPC request form a terminal, curl-likeHey, I wanted to ask if there is conventional a way to do that? I wanted to warmup my lambda but canUsage of useQuery after pageload?Hi all! I am new to TRPC so my apologies in advance for a very nooby question: In my [id].tsx file ISecurity question about tRCPIf I export the tRCP router as type in order to import that type in my client JS, wouldn't it mean tReal-world Large Application Examples?Are there any OSS examples (besides cal.com) demonstrating large tRPC code bases? I want to see howScaling tRPCI’ve been seeing issues regarding tRPC routers and performance issues as routers grow. I’m wonderinwhat is the best way to update trpc and its dependencies?Hi all, as the title says, how can i best update trpc and its dependencies? TRPC stands at 10.25.1,Where i can read a journal about tRPC ?I use tRPC for my Final Task in my Bachelor Degree, but i can't found journal about tRPC. Can anyoneDefault Query Function to resume paused mutationsI'm building a React Native App with an offline mode. I implemented a PersistQueryProvider and a bui