From 27e51620b8bc1477057b25c6cc6f2d1d02985dbe Mon Sep 17 00:00:00 2001 From: Marks Polakovs Date: Sun, 12 Apr 2020 10:13:41 +0200 Subject: [PATCH] Log version to raygun --- src/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index 9f63295..c6c524e 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -11,6 +11,9 @@ import { Provider } from "react-redux"; raygun("apiKey", "mtj24r3YzPoYyCG8cVArA"); raygun("enableCrashReporting", true); +if (typeof process.env.REACT_APP_VERSION === "string" && process.env.REACT_APP_VERSION.length > 0) { + raygun("setVersion", process.env.REACT_APP_VERSION); +} function render() { ReactDOM.render(