Add hidden command to send test error to Sentry
I haven't seen anything come in from prod yet, and it's hard to trigger one, maybe because the integration is React-specific? Or maybe it's... not working :p I can send errors from dev! But just haven't _seeeen_ a prod error come in yet. Maybe we're just squeaky clean tho :3
This commit is contained in:
parent
675c6310fc
commit
cfb5504341
1 changed files with 6 additions and 0 deletions
|
@ -36,6 +36,12 @@ function HomePage() {
|
||||||
|
|
||||||
const [previewState, setPreviewState] = React.useState(null);
|
const [previewState, setPreviewState] = React.useState(null);
|
||||||
|
|
||||||
|
React.useEffect(() => {
|
||||||
|
if (window.location.href.includes("send-test-error-for-sentry")) {
|
||||||
|
throw new Error("Test error for Sentry");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Flex direction="column" align="center" textAlign="center" marginTop="8">
|
<Flex direction="column" align="center" textAlign="center" marginTop="8">
|
||||||
<Box
|
<Box
|
||||||
|
|
Loading…
Reference in a new issue