report ui errors to discord logs

This commit is contained in:
Tyler Shipe 2022-01-13 10:47:44 -06:00
parent 3271851f5e
commit c264aa4296
1 changed files with 2 additions and 2 deletions

View File

@ -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({