refactor components and notifications bug

This commit is contained in:
Michael Dausmann
2023-10-06 19:16:37 +11:00
parent a64bdc19ab
commit 4cb78b0060
13 changed files with 174 additions and 92 deletions

View File

@@ -1,6 +1,6 @@
import { createTRPCNuxtClient, httpBatchLink } from 'trpc-nuxt/client'
import type { AppRouter } from '~/server/api/trpc/[trpc]'
import superjson from 'superjson';
import { createTRPCNuxtClient, httpBatchLink } from "trpc-nuxt/client";
import type { AppRouter } from "~/server/api/trpc/[trpc]";
import superjson from "superjson";
export default defineNuxtPlugin(() => {
/**
@@ -10,15 +10,15 @@ export default defineNuxtPlugin(() => {
const client = createTRPCNuxtClient<AppRouter>({
links: [
httpBatchLink({
url: '/api/trpc',
url: "/api/trpc",
}),
],
transformer: superjson,
})
});
return {
provide: {
client,
},
}
})
};
});