AlexAnarcho
AlexAnarcho
TTCTheo's Typesafe Cult
Created by AlexAnarcho on 7/8/2024 in #questions
trpc server actions: experimental_nextAppDirCaller
I am not even sure if I put the code at the right location. But I think yes, since the other trpc configuration is also done in src/server/api/trpc.ts
3 replies
TTCTheo's Typesafe Cult
Created by AlexAnarcho on 7/8/2024 in #questions
trpc server actions: experimental_nextAppDirCaller
No description
3 replies
TTCTheo's Typesafe Cult
Created by kal on 3/25/2024 in #questions
nextjs 14 TRPC, correctly setting up ws subscriptions
i am also very interested in this, the documentation is lacking and a real pain in the behind to get working..
4 replies
TTCTheo's Typesafe Cult
Created by utdev on 7/16/2023 in #questions
Help adding trpc-openapi to t3 app
oh... that kinda sucks. thanks for the reply tho!
20 replies
TTCTheo's Typesafe Cult
Created by utdev on 7/16/2023 in #questions
Help adding trpc-openapi to t3 app
(using app router btw)
20 replies
TTCTheo's Typesafe Cult
Created by utdev on 7/16/2023 in #questions
Help adding trpc-openapi to t3 app
I am stuck at the same point. The issue as I see it is this part in app/api/trpc/[trpc]/route.ts the handler for me is created like so (fresh t3 project)
const handler = (req: NextRequest) =>
fetchRequestHandler({
endpoint: "/api/trpc",
req,
router: appRouter,
createContext: () => createContext(req),
onError:
env.NODE_ENV === "development"
? ({ path, error }) => {
console.error(
`❌ tRPC failed on ${path ?? "<no-path>"}: ${error.message}`
);
}
: undefined,
});
const handler = (req: NextRequest) =>
fetchRequestHandler({
endpoint: "/api/trpc",
req,
router: appRouter,
createContext: () => createContext(req),
onError:
env.NODE_ENV === "development"
? ({ path, error }) => {
console.error(
`❌ tRPC failed on ${path ?? "<no-path>"}: ${error.message}`
);
}
: undefined,
});
I dont see what to replace here with the createOpenApiNextHandler
20 replies
TTCTheo's Typesafe Cult
Created by AlexAnarcho on 11/24/2023 in #questions
Flake.nix for create t3-app and nextjs14
Yes, nextjs13 works fine for me too
3 replies
TTCTheo's Typesafe Cult
Created by Nate Vukovich on 10/16/2023 in #questions
Next Auth + Create T3 App ( appDir )
Heyo, I ahve not gotten this to work unfortunately. I am trying to do a very basic setup of NextAuth with the new appDir and trpc, but it does not work and i dont get how it should ideally work: https://create.t3.gg/en/usage/next-auth is still referring to the pages directory, so no real help either...
6 replies