2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-04-28 05:26:47 +00:00

Specify environment for sentry.io

This commit is contained in:
Oliver 2021-07-29 15:25:29 +10:00
parent 6d1bed29c0
commit 489f4bee50

View File

@ -21,6 +21,7 @@ Future<void> main() async {
await Sentry.init((options) { await Sentry.init((options) {
options.dsn = SENTRY_DSN_KEY; options.dsn = SENTRY_DSN_KEY;
options.environment = isInDebugMode() ? "debug" : "release";
}); });
WidgetsFlutterBinding.ensureInitialized(); WidgetsFlutterBinding.ensureInitialized();