Skip to content

Commit

Permalink
chore: #148 upgrade examples (#157)
Browse files Browse the repository at this point in the history
* express example: upgrade dependencies and point to subfolder raygun package

* using-domains: upgrade dependencies and reference local raygun

* using-domains: upgrade dependencies and reference local raygun

* add console logs and format using spaces

* improved readme

* improved readme + replace tabs by spaces

* enforce changing API keys to run examples
  • Loading branch information
miquelbeltran authored Apr 29, 2024
1 parent 1650c25 commit e27c74b
Show file tree
Hide file tree
Showing 8 changed files with 2,700 additions and 1,439 deletions.
5 changes: 5 additions & 0 deletions examples/express-sample/app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
var config = require('config');

if (config.Raygun.Key === 'YOUR_API_KEY') {
console.error('You need to set your Raygun API key in the config file');
process.exit(1);
}

// Setup Raygun
var raygun = require('raygun');
var raygunClient = new raygun.Client().init({
Expand Down
Loading

0 comments on commit e27c74b

Please sign in to comment.