Skip to content

Commit

Permalink
add process env var back in
Browse files Browse the repository at this point in the history
  • Loading branch information
thostetler committed Dec 2, 2024
1 parent 9f75cdf commit 0777119
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ <h3 id="basic-html-message">
crossorigin="anonymous"
></script>
<script>
// Set the environment variable
window.process = { env: { NODE_ENV: window.ENV ?? 'production' } };

window.getSentry = (cb, errCb) => {
if (typeof errCb === 'function') {
errCb.call(null, new Error('Failed to get Sentry'));
Expand Down

0 comments on commit 0777119

Please sign in to comment.