Vengeance
Vengeance
TtRPC
Created by Vengeance on 11/10/2023 in #❓-help
useQuery in App Router?
was importing from server
8 replies
TtRPC
Created by Vengeance on 11/10/2023 in #❓-help
useQuery in App Router?
thank you so much !
8 replies
TtRPC
Created by Vengeance on 11/10/2023 in #❓-help
useQuery in App Router?
ohhhhhh
8 replies
TtRPC
Created by Vengeance on 10/19/2023 in #❓-help
Vercel maxDuration with tRPC
Nvm I got it
src/pages/api/trpc/[trpc].ts
src/pages/api/trpc/[trpc].ts
3 replies
TtRPC
Created by Rhys on 1/24/2023 in #❓-help
tRPC Cors Authentication Error
this helped me a lot thank you 🙏 they should definitely specify this stuff in the docs
10 replies
TtRPC
Created by Vengeance on 1/30/2023 in #❓-help
tRPC Call To Server
5 replies
TtRPC
Created by Vengeance on 1/30/2023 in #❓-help
tRPC Call To Server
export default async function handler(
req: NextApiRequest,
res: NextApiResponse
) {
res.setHeader("Access-Control-Allow-Origin", "*");
res.setHeader("Access-Control-Allow-Credentials", "true");
res.setHeader("Access-Control-Request-Method", "*");
res.setHeader("Access-Control-Allow-Methods", "OPTIONS, GET");
res.setHeader("Access-Control-Allow-Headers", "*");
if (req.method === "OPTIONS") {
res.writeHead(200);
return res.end();
}

return nextApiHandler(req, res);
}
export default async function handler(
req: NextApiRequest,
res: NextApiResponse
) {
res.setHeader("Access-Control-Allow-Origin", "*");
res.setHeader("Access-Control-Allow-Credentials", "true");
res.setHeader("Access-Control-Request-Method", "*");
res.setHeader("Access-Control-Allow-Methods", "OPTIONS, GET");
res.setHeader("Access-Control-Allow-Headers", "*");
if (req.method === "OPTIONS") {
res.writeHead(200);
return res.end();
}

return nextApiHandler(req, res);
}
still getting response body is not available to scripts (Reason: CORS No Allow Credentials) 😔
5 replies
TtRPC
Created by Vengeance on 1/30/2023 in #❓-help
tRPC Call To Server
me when i dont read docs: 🧍‍♂️
5 replies
TtRPC
Created by Vengeance on 1/30/2023 in #❓-help
tRPC Call To Server
5 replies
TtRPC
Created by Vengeance on 12/7/2022 in #❓-help
z.map() as an input
Changed query and frontend to a record instead and suddenly it's working
3 replies
TtRPC
Created by Vengeance on 12/5/2022 in #❓-help
Ignore Errors from batch calls
I do that so I can display the error I throw, but if I throw it in a batch call it causes the other calls to hang
7 replies
TtRPC
Created by Vengeance on 12/5/2022 in #❓-help
Ignore Errors from batch calls
yes
7 replies