You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.error("Could not fetch '@sentry/react-native' plugin properties from expo config.");
113
114
process.exit(1);
114
115
}
115
-
if(!pluginConfig.project){
116
-
console.error(
117
-
`Could not resolve sentry project, set it in the environment variable ${SENTRY_PROJECT} or in the '@sentry/react-native' plugin properties in your expo config.`,
118
-
);
119
-
process.exit(1);
116
+
117
+
if(!sentryOrg){
118
+
if(!pluginConfig.organization){
119
+
console.error(
120
+
`Could not resolve sentry org, set it in the environment variable ${SENTRY_ORG} or in the '@sentry/react-native' plugin properties in your expo config.`,
121
+
);
122
+
process.exit(1);
123
+
}
124
+
125
+
sentryOrg=pluginConfig.organization;
126
+
console.log(`${SENTRY_ORG} resolved to ${sentryOrg} from expo config.`);
127
+
}
128
+
129
+
if(!sentryProject){
130
+
if(!pluginConfig.project){
131
+
console.error(
132
+
`Could not resolve sentry project, set it in the environment variable ${SENTRY_PROJECT} or in the '@sentry/react-native' plugin properties in your expo config.`,
133
+
);
134
+
process.exit(1);
135
+
}
136
+
137
+
sentryProject=pluginConfig.project;
138
+
console.log(`${SENTRY_PROJECT} resolved to ${sentryProject} from expo config.`);
120
139
}
121
-
sentryProject=pluginConfig.project;
122
-
console.log(`${SENTRY_PROJECT} resolved to ${sentryProject} from expo config.`);
123
140
}
124
141
125
142
if(!authToken){
@@ -158,6 +175,7 @@ for (const [assetGroupName, assets] of Object.entries(groupedAssets)) {
0 commit comments