Skip to content

Commit

Permalink
Update frontend/packages/tools/upload-sourcemaps.js
Browse files Browse the repository at this point in the history
Co-authored-by: Jorge Cortés <[email protected]>
  • Loading branch information
jdslaugh and jecr authored Aug 21, 2023
1 parent c73e0fb commit 086f997
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/packages/tools/upload-sourcemaps.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const uploadToBugsnag = async ({ apiKey, baseUrl, distDir: directory }) => {
const uploadBugsnagSourcemaps = () => {
const apiKey = process.env.REACT_APP_BUGSNAG_API_TOKEN || "";
const baseUrl = process.env.REACT_APP_BASE_URL || "";
if (!apiKey || apiKey === "") {
if (!apiKey) {
console.error(`[BugSnag] No API token found in ${dotEnvFile} file. Skipping upload.`);
return Promise.reject(new Error("[BugSnag] API Key missing"));
}
Expand Down

0 comments on commit 086f997

Please sign in to comment.