refactor components and notifications bug
This commit is contained in:
@@ -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,
|
||||
},
|
||||
}
|
||||
})
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user