update example

This commit is contained in:
Robert Soriano
2022-10-29 19:31:42 -07:00
parent e69dacf07a
commit 14da8bbda6
4 changed files with 16 additions and 42 deletions

View File

@@ -1,8 +1,9 @@
import { httpBatchLink } from '@trpc/client'
import { createTRPCNuxtProxyClient } from 'trpc-nuxt/client'
import type { AppRouter } from '~~/server/trpc'
export default defineNuxtPlugin(() => {
const client = createTRPCNuxtProxyClient({
const client = createTRPCNuxtProxyClient<AppRouter>({
links: [
httpBatchLink({
url: 'http://localhost:3000/trpc',