Update example and playground dependencies

This commit is contained in:
2023-08-31 14:11:23 +02:00
parent 0612716187
commit 25e09b2e30
6 changed files with 149 additions and 312 deletions

View File

@@ -1,6 +1,6 @@
import { createNuxtApiHandler } from 'trpc-nuxt'
import { appRouter } from '@/server/trpc/routers'
import { createContext } from '@/server/trpc/context'
import { appRouter } from '../../trpc/routers'
import { createContext } from '../../trpc/context'
export default createNuxtApiHandler({
router: appRouter,

View File

@@ -1,5 +1,6 @@
import { z } from 'zod'
import { publicProcedure, router } from '../trpc'
import { $fetch } from 'ofetch'
const baseURL = 'https://jsonplaceholder.typicode.com'

View File

@@ -0,0 +1,3 @@
{
"extends": "../.nuxt/tsconfig.server.json"
}