move links to another file

This commit is contained in:
wobsoriano
2022-12-18 22:22:15 -08:00
parent ff88817168
commit a5cb0c754e
3 changed files with 76 additions and 67 deletions

View File

@@ -8,11 +8,11 @@ export default defineNuxtPlugin(() => {
transformer: superjson,
links: [
// adds pretty logs to your console in development and logs errors in production
// loggerLink({
// enabled: opts =>
// process.env.NODE_ENV === 'development' ||
// (opts.direction === 'down' && opts.result instanceof Error)
// }),
loggerLink({
enabled: opts =>
process.env.NODE_ENV === 'development' ||
(opts.direction === 'down' && opts.result instanceof Error)
}),
httpBatchLink()
]
})