From c264aa42964e4d73971efe707cbfa3935fff9d83 Mon Sep 17 00:00:00 2001 From: Tyler Shipe Date: Thu, 13 Jan 2022 10:47:44 -0600 Subject: [PATCH] report ui errors to discord logs --- components/ErrorBoundary.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/ErrorBoundary.tsx b/components/ErrorBoundary.tsx index 47b8121f..76a6a46d 100644 --- a/components/ErrorBoundary.tsx +++ b/components/ErrorBoundary.tsx @@ -18,9 +18,9 @@ class ErrorBoundary extends React.Component< // You can also log the error to an error reporting service // logErrorToMyService(error, errorInfo) - if (process.env.NEXT_ERROR_WEBHOOK_URL) { + if (process.env.NEXT_PUBLIC_ERROR_WEBHOOK_URL) { try { - fetch(process.env.NEXT_ERROR_WEBHOOK_URL, { + fetch(process.env.NEXT_PUBLIC_ERROR_WEBHOOK_URL, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({