From d1d3caf17595d7ddab6cad0425701f10af5d384a Mon Sep 17 00:00:00 2001 From: Conrawl Rogers Date: Tue, 13 Dec 2022 00:54:05 -0400 Subject: [PATCH] fix: allow apollo:auth hook in production Closes #461 --- src/runtime/plugin.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/runtime/plugin.ts b/src/runtime/plugin.ts index 498f41c5..269241ab 100644 --- a/src/runtime/plugin.ts +++ b/src/runtime/plugin.ts @@ -85,8 +85,6 @@ export default defineNuxtPlugin((nuxtApp) => { } const errorLink = onError((err) => { - if (process.env.NODE_ENV === 'production') { return } - nuxtApp.callHook('apollo:error', err) })