Files
freeCodeCamp/api/package.json
Muhammed Mustafa 1d8e9fb0b7 feat(api): create sentry plugin (#49731)
* feat(api): add sentry plugin

Apply suggestions from code review

Revert "feat(api): add sentry plugin"

This reverts commit fcde4ee03e9b83e335a6a2bccd490490e9993597.

install sentryNode

WIP: create sentry debug

WIP: find out why use errorhandler isn't typed correct

install sentry

add the deleted sentry code

create sentry plugin

* fix error found through sentry

* Polish sentry plugin

Co-authored-by: Niraj Nandish <nirajnandish@icloud.com>

* duplicate the changes made in the other plugin

* add done to seterrorHandler

* Fix a typo in sentry option

Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>

* Stop the dns from running if a DSN wasn't provided

Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>

* Polish the function and check the variable value

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* check the dsn dashboard in the env

* export dsn value if it isn't sentrydashboard

Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>

* when the value is undefined init errors

* revert the if statement

* throw an error whenever an environment variable is not right

---------

Co-authored-by: Niraj Nandish <nirajnandish@icloud.com>
Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2023-04-05 08:35:23 -07:00

63 lines
1.7 KiB
JSON

{
"author": "freeCodeCamp <team@freecodecamp.org>",
"bugs": {
"url": "https://github.com/freeCodeCamp/freeCodeCamp/issues"
},
"dependencies": {
"@fastify/cookie": "^8.3.0",
"@fastify/middie": "8.1",
"@fastify/session": "^10.1.1",
"@fastify/swagger": "^8.3.1",
"@fastify/swagger-ui": "^1.5.0",
"@prisma/client": "4.11.0",
"@sentry/node": "7.37.1",
"connect-mongo": "4.6.0",
"fastify": "4.15.0",
"fastify-auth0-verify": "^1.0.0",
"fastify-plugin": "^4.3.0",
"nodemon": "2.0.22"
},
"description": "The freeCodeCamp.org open-source codebase and curriculum",
"devDependencies": {
"@fastify/type-provider-typebox": "3.0.0",
"@types/express-session": "1.17.7",
"@types/supertest": "2.0.12",
"jest": "29.5.0",
"pino-pretty": "10.0.0",
"prisma": "4.11.0",
"supertest": "6.3.3",
"ts-jest": "29.0.5"
},
"engines": {
"node": ">=18",
"npm": ">=8"
},
"homepage": "https://github.com/freeCodeCamp/freeCodeCamp#readme",
"license": "BSD-3-Clause",
"main": "none",
"name": "@freecodecamp/api",
"nodemonConfig": {
"env": {
"FREECODECAMP_NODE_ENV": "development"
},
"ignore": [
"**/*.js"
]
},
"private": true,
"repository": {
"type": "git",
"url": "git+https://github.com/freeCodeCamp/freeCodeCamp.git"
},
"scripts": {
"build": "tsc -p tsconfig.build.json",
"clean": "rm -rf dist",
"develop": "nodemon src/server.ts",
"start": "FREECODECAMP_NODE_ENV=production node dist/server.js",
"test": "jest --force-exit",
"prisma": "MONGOHQ_URL=mongodb://localhost:27017/freecodecamp?directConnection=true prisma",
"postinstall": "prisma generate"
},
"version": "0.0.1"
}