CodingWithJamal
CodingWithJamal
TtRPC
Created by CodingWithJamal on 10/26/2023 in #❓-help
Disable trpc route cahce?
but im using
export const trpc = experimental_createTRPCNextAppDirServer<AppRouter>({
config() {
return {
transformer: superjson,
links: [
loggerLink({
enabled: () => process.env.NODE_ENV === "development",
}),
experimental_nextHttpLink({
batch: true,
url: getUrl(),
headers() {
return {
cookie: cookies().toString(),
"x-trpc-source": "rsc-http",
};
},
}),
],
};
},
});
export const trpc = experimental_createTRPCNextAppDirServer<AppRouter>({
config() {
return {
transformer: superjson,
links: [
loggerLink({
enabled: () => process.env.NODE_ENV === "development",
}),
experimental_nextHttpLink({
batch: true,
url: getUrl(),
headers() {
return {
cookie: cookies().toString(),
"x-trpc-source": "rsc-http",
};
},
}),
],
};
},
});
The Nextjs server trpc so it only has the query method on it
9 replies
TtRPC
Created by CodingWithJamal on 10/26/2023 in #❓-help
Disable trpc route cahce?
However when i go to http://localhost:3000/api/trpc/getClient and test i get the fresh data on every request?
9 replies