From 246adc70a63476adfa91f5b639f09813b2fd2efb Mon Sep 17 00:00:00 2001 From: Phillip Kelly Date: Mon, 13 Mar 2023 11:44:47 -0400 Subject: [PATCH 1/2] DIG-1879(Access-Boston): Upgrade Rollbar Browser Versions --- services-js/access-boston/README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/services-js/access-boston/README.md b/services-js/access-boston/README.md index e802963b3..ead1f147e 100644 --- a/services-js/access-boston/README.md +++ b/services-js/access-boston/README.md @@ -93,8 +93,10 @@ We also need to generate keys. http://localhost:3000/ ### Staging -DEV: https://access-boston.dev.digital-staging.boston.gov/ -TEST: http://access-test.boston.gov/ +DEV: + - https://access-boston-dev.digital-staging.boston.gov/ +TEST: + - http://access-test.boston.gov/ ### PROD https://access-boston.boston.gov/ From 435247b5da1842feb7817b7d78331251837d6e11 Mon Sep 17 00:00:00 2001 From: Phillip Kelly Date: Mon, 13 Mar 2023 12:02:38 -0400 Subject: [PATCH 2/2] DIG-1879(Access-Boston): Upgrade Rollbar Browser Versions - updated js --- .../access-boston/src/pages/_document.tsx | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/services-js/access-boston/src/pages/_document.tsx b/services-js/access-boston/src/pages/_document.tsx index ea80e3519..44ee4dfa6 100644 --- a/services-js/access-boston/src/pages/_document.tsx +++ b/services-js/access-boston/src/pages/_document.tsx @@ -100,18 +100,19 @@ export default class MyDocument extends Document { type="text/javascript" dangerouslySetInnerHTML={{ __html: ` -var _rollbarConfig = { - accessToken: "${rollbarAccessToken}", - captureUncaught: true, - captureUnhandledRejections: true, - payload: { - environment: "${rollbarEnvironment}" - } -}; -// Rollbar Snippet -!function(r){function e(n){if(o[n])return o[n].exports;var t=o[n]={exports:{},id:n,loaded:!1};return r[n].call(t.exports,t,t.exports,e),t.loaded=!0,t.exports}var o={};return e.m=r,e.c=o,e.p="",e(0)}([function(r,e,o){"use strict";var n=o(1),t=o(4);_rollbarConfig=_rollbarConfig||{},_rollbarConfig.rollbarJsUrl=_rollbarConfig.rollbarJsUrl||"https://cdnjs.cloudflare.com/ajax/libs/rollbar.js/2.5.1/rollbar.min.js",_rollbarConfig.async=void 0===_rollbarConfig.async||_rollbarConfig.async;var a=n.setupShim(window,_rollbarConfig),l=t(_rollbarConfig);window.rollbar=n.Rollbar,a.loadFull(window,document,!_rollbarConfig.async,_rollbarConfig,l)},function(r,e,o){"use strict";function n(r){return function(){try{return r.apply(this,arguments)}catch(r){try{console.error("[Rollbar]: Internal error",r)}catch(r){}}}}function t(r,e){this.options=r,this._rollbarOldOnError=null;var o=s++;this.shimId=function(){return o},"undefined"!=typeof window&&window._rollbarShims&&(window._rollbarShims[o]={handler:e,messages:[]})}function a(r,e){if(r){var o=e.globalAlias||"Rollbar";if("object"==typeof r[o])return r[o];r._rollbarShims={},r._rollbarWrappedError=null;var t=new p(e);return n(function(){e.captureUncaught&&(t._rollbarOldOnError=r.onerror,i.captureUncaughtExceptions(r,t,!0),i.wrapGlobals(r,t,!0)),e.captureUnhandledRejections&&i.captureUnhandledRejections(r,t,!0);var n=e.autoInstrument;return e.enabled!==!1&&(void 0===n||n===!0||"object"==typeof n&&n.network)&&r.addEventListener&&(r.addEventListener("load",t.captureLoad.bind(t)),r.addEventListener("DOMContentLoaded",t.captureDomContentLoaded.bind(t))),r[o]=t,t})()}}function l(r){return n(function(){var e=this,o=Array.prototype.slice.call(arguments,0),n={shim:e,method:r,args:o,ts:new Date};window._rollbarShims[this.shimId()].messages.push(n)})}var i=o(2),s=0,d=o(3),c=function(r,e){return new t(r,e)},p=function(r){return new d(c,r)};t.prototype.loadFull=function(r,e,o,t,a){var l=function(){var e;if(void 0===r._rollbarDidLoad){e=new Error("rollbar.js did not load");for(var o,n,t,l,i=0;o=r._rollbarShims[i++];)for(o=o.messages||[];n=o.shift();)for(t=n.args||[],i=0;i )}