bugsnag

Where to put Bugsnag scripts for Chrome Extension integration

て烟熏妆下的殇ゞ 提交于 2019-12-12 03:36:42
问题 I'm working on a Chrome extension for the first time and trying to integrate Bugsnag js error reporting. I found a lot of useful information, but I don't understand how to actually load bugsnag into the extension. (e.g. in the background script, content script, a background.html page or somewhere else). Do you write code to insert the script tag into the page? Bugsnag setup docs suggest configuring <script src="//d2wy8f7a9ursnm.cloudfront.net/bugsnag-2.min.js" data-apikey="YOUR-API-KEY-HERE">

Use Express.js in an existing Nuxt.js project

落爺英雄遲暮 提交于 2019-12-11 15:06:06
问题 I have a project built with Nuxt.js and I want to use express to be able to report bugsnag errors on my asyncData method etc. How would I go to import that? I suppose is not as simple as npm install express --save. I already have an api written in PHP so I would not use that as an api or anything else. Is it overkill? Or is it a necessary evil? :D 回答1: You dont need express to handle errors in asyncData. To handle errors in asyncData/fetch on ssr you just need to hook into render