aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sentry.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sentry.js b/src/sentry.js
new file mode 100644
index 0000000..d30752d
--- /dev/null
+++ b/src/sentry.js
@@ -0,0 +1,10 @@
+import * as Sentry from '@sentry/browser';
+
+Sentry.init({
+ dsn: sentrydsn,
+ release: version,
+});
+Sentry.setUser({
+ id: url,
+ username: basepath,
+});