mirror of
https://github.com/outline/outline.git
synced 2026-05-03 08:00:15 -05:00
13 lines
238 B
JavaScript
13 lines
238 B
JavaScript
// @flow
|
|
import * as Sentry from "@sentry/react";
|
|
import { Route } from "react-router-dom";
|
|
import env from "env";
|
|
|
|
let Component = Route;
|
|
|
|
if (env.SENTRY_DSN) {
|
|
Component = Sentry.withSentryRouting(Route);
|
|
}
|
|
|
|
export default Component;
|