Skip to content

Commit

Permalink
fix: allow apollo:auth hook in production
Browse files Browse the repository at this point in the history
Closes #461
  • Loading branch information
Diizzayy committed Dec 13, 2022
1 parent 8d28576 commit d1d3caf
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/runtime/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ export default defineNuxtPlugin((nuxtApp) => {
}

const errorLink = onError((err) => {
if (process.env.NODE_ENV === 'production') { return }

nuxtApp.callHook('apollo:error', err)
})

Expand Down

0 comments on commit d1d3caf

Please sign in to comment.