Replies: 1 comment
-
They serve the entire trpc-panel in one html string. I believe it can be used with any framework. Below code is exactly how I serve it and identical to their quickstart example. import { renderTrpcPanel } from "trpc-panel";
fastify.get('/panel', (_, res) => {
return res.header('content-type', 'text/html').send(
renderTrpcPanel(trpcRoot, {
url: 'http://localhost:3200',
transformer: 'superjson',
})
)
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
is fastify even supported?
Beta Was this translation helpful? Give feedback.
All reactions