move to pnpm workspace

This commit is contained in:
Robert Soriano
2022-10-29 22:45:57 -07:00
parent 09500bc868
commit 3522cc9327
28 changed files with 177 additions and 181 deletions

View File

@@ -1,23 +0,0 @@
import { createNuxtApiHandler } from 'trpc-nuxt'
import { appRouter } from '../../trpc/routers'
import { createContext } from '~~/server/trpc/context'
export default createNuxtApiHandler({
router: appRouter,
/**
* @link https://trpc.io/docs/context
*/
createContext,
onError({ error }) {
if (error.code === 'INTERNAL_SERVER_ERROR') {
// send to bug reporting
console.error('Something went wrong', error)
}
},
/**
* @link https://trpc.io/docs/caching#api-response-caching
*/
// responseMeta() {
// // ...
// },
})