diff --git a/packages/frontend/src/index.tsx b/packages/frontend/src/index.tsx index dd556cc3..a1677235 100644 --- a/packages/frontend/src/index.tsx +++ b/packages/frontend/src/index.tsx @@ -39,7 +39,9 @@ const gqlEndpoint = `${import.meta.env.VITE_SERVER_URL}/${SERVER_GQL_PATH}`; const gqlClient = new GQLClient({ gqlEndpoint }); -const ErrorBoundary = Bugsnag.getPlugin('react')!.createErrorBoundary(React); +const ErrorBoundary = bugsnagApiKey + ? Bugsnag.getPlugin('react')!.createErrorBoundary(React) + : ({ children }: any) => children; root.render(