diff --git a/samples/expo/app/_layout.tsx b/samples/expo/app/_layout.tsx index 9430d8f22..31a6a42bb 100644 --- a/samples/expo/app/_layout.tsx +++ b/samples/expo/app/_layout.tsx @@ -25,7 +25,7 @@ const navigationIntegration = Sentry.reactNavigationIntegration({ enableTimeToInitialDisplay: !isExpoGo(), // This is not supported in Expo Go. }); -process.env.EXPO_SKIP_DURING_EXPORT !== 'true' && Sentry.init({ +Sentry.init({ // Replace the example DSN below with your own DSN: dsn: SENTRY_INTERNAL_DSN, debug: true, diff --git a/samples/expo/package.json b/samples/expo/package.json index 62fe333c7..a25ec3bf3 100644 --- a/samples/expo/package.json +++ b/samples/expo/package.json @@ -10,7 +10,8 @@ "android": "expo run:android", "ios": "expo run:ios", "ts:check": "tsc", - "export": "EXPO_SKIP_DURING_EXPORT='true' expo export --dump-sourcemap --clear", + "export": "expo export --dump-sourcemap --clear --platform all", + "export:web": "expo export --dump-sourcemap --clear --platform web", "prebuild": "expo prebuild --clean --no-install", "set-version": "npx react-native-version --skip-tag --never-amend" },