T
tRPC

when i deploy frontend trpc fails to compile

when i deploy frontend trpc fails to compile

Ttest_16/18/2023
im trying to deploy my create-react-app with tRPC to Vercel it works perfectly fine on localhost
Solution:
kk i fixed it
Jump to solution
Ttest_16/18/2023
it also works fine when i build the CRA on my local computer and just open the index.html ok I know the issue but i dont know the fix. its because the frontend code needs node_modules installed on the server folder
Solution
Ttest_16/18/2023
kk i fixed it
Ttest_16/18/2023
let me know if there is better way to deploy monorepo with /server/ and /client/ , i am deploying them seperately

Looking for more? Join the community!

T
tRPC

when i deploy frontend trpc fails to compile

Join Server
Recommended Posts
how to rate limit in trpc express/nodejs server (not nextjs)each prodecure will have different rate limit for IP or sometthing idk maybe whole database will havDisable fetch on load```tsx import React, { useState } from "react"; import { api } from "../utils/api"; const Test = ()is it possible to record the requests on the server side ?I wanted to play them back then on the browser side . I wanted to do server side rendering in reactStreaming responses (eg. for streaming ai chat completion text)Hello! Has anyone used Vercel's `ai` package or any similar libraries which stream their responses wHandling errors on the front-endI'm making a mutation from my front-end and I intentionally throw a new TRPCError on my backend, I cTypeScript Alias Imports don't get resolved ont the ClientI have a Monorepo with a multiple `/packages/*` packages, each has its own `tsconfig.json`. I noticmerging other routers to appRouterHey everyone, I am using the https://icflorescu.github.io/trpc-sveltekit package in my SvelteKit proCan I get non-redacted INTERNAL_SERVER_ERRORS in production?I'm trying to debug crashes in production, and having a hard time. As far as I can tell, errors are Error handling: Zod errors and manually thrown TRPCErrors have different shapeIf zod validation fails, the client-side `error.message` contains a JSON encoded array of errors, buprefetch() within getServerSideProps does not provide data upon manual refreshingWithin getServerSideProps: `await ssh.user.getDepositInfo.prefetch(userId);` `await ssh.user.getFQOHow to modify existing cache data?I have a message queue being fetched with InfiniteQuery requests. When adding a new message, I want When using createServerSideHelpers can the context be typed as GetServerSidePropsContext?I assume the reason we should recreate the context when using createServerSideHelpers is because the