Skip to content

Commit

Permalink
issue 191 premilinary research into using nestjs-sentry package
Browse files Browse the repository at this point in the history
added sentry sourcemaps
  • Loading branch information
horatiorosa committed Apr 9, 2024
1 parent ccd4938 commit 0345268
Show file tree
Hide file tree
Showing 7 changed files with 231 additions and 55 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,6 @@ lerna-debug.log*

# database volume
db-volume

# Sentry Config File
.sentryclirc
239 changes: 190 additions & 49 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"private": true,
"license": "UNLICENSED",
"scripts": {
"build": "npm run redoc:build && nest build",
"build": "npm run redoc:build && nest build && npm run sentry:sourcemaps",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\" \"db/**/*.ts\"",
"start": "nest start",
"dev": "nest start --watch",
Expand All @@ -26,7 +26,8 @@
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config ./test/jest-e2e.json",
"prepare": "husky install",
"generate": "kubb generate"
"generate": "kubb generate",
"sentry:sourcemaps": "sentry-cli sourcemaps inject --org nyc-planning --project zoning-api ./dist && sentry-cli sourcemaps upload --org nyc-planning --project zoning-api ./dist"
},
"dependencies": {
"@nestjs/common": "^10.3.3",
Expand All @@ -35,6 +36,7 @@
"@nestjs/platform-express": "^10.0.0",
"@nestjs/serve-static": "^4.0.0",
"@ntegral/nestjs-sentry": "^4.0.1",
"@sentry/cli": "^2.31.0",
"@sentry/node": "^7.106.1",
"drizzle-orm": "^0.29.0",
"joi": "^17.11.0",
Expand Down Expand Up @@ -110,4 +112,4 @@
"npm run lint"
]
}
}
}
Loading

0 comments on commit 0345268

Please sign in to comment.