From b1ddfc146b06bf9c9f1f76a27144442bb58b6fc3 Mon Sep 17 00:00:00 2001 From: wobsoriano Date: Sun, 18 Dec 2022 15:36:11 -0800 Subject: [PATCH] cleanup --- playground/plugins/trpc-client.ts | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/playground/plugins/trpc-client.ts b/playground/plugins/trpc-client.ts index e33fa0a..1b7e1c1 100644 --- a/playground/plugins/trpc-client.ts +++ b/playground/plugins/trpc-client.ts @@ -6,33 +6,6 @@ import type { AppRouter } from '~~/server/trpc/routers' export default defineNuxtPlugin(() => { const headers = useRequestHeaders() - // const client = createTRPCProxyClient({ - // transformer: superjson, - // links: [ - // // adds pretty logs to your console in development and logs errors in production - // loggerLink({ - // enabled: opts => - // process.env.NODE_ENV === 'development' || - // (opts.direction === 'down' && opts.result instanceof Error) - // }), - // httpBatchLink({ - // url: '/api/trpc', - // headers () { - // return headers - // }, - // fetch: (input, options) => - // globalThis.$fetch.raw(input.toString(), options) - // .catch((e) => { - // if (e instanceof FetchError && e.response) { return e.response } - // throw e - // }) - // .then(response => ({ - // ...response, - // json: () => Promise.resolve(response._data) - // })) - // }) - // ] - // }) const client = createTRPCNuxtClient({ transformer: superjson, links: [