Files
konstitisyon.nu/package.json
T
cedric 8016c26e32 feat: intégration Sentry + migration middleware.js → proxy.js (Next.js 16)
Sentry (tracking erreurs frontend + API routes) :
- sentry.client.config.js  : erreurs navigateur + Session Replay sur erreurs
- sentry.server.config.js  : erreurs API routes (register, jwt callback)
- sentry.edge.config.js    : runtime edge (middleware proxy)
- instrumentation.js       : point d'entrée Next.js 15+ (register + captureRequestError)
- next.config.mjs          : wrappé avec withSentryConfig (source maps désactivés sans SENTRY_AUTH_TOKEN)
- .env.sample              : ajout de NEXT_PUBLIC_SENTRY_DSN (placeholder)

Migration middleware → proxy (bug pré-existant surfacé par le build Sentry) :
- proxy.js : fusion du rate limiting + auth NextAuth en un seul proxy Next.js 16
- middleware.js : supprimé (Next.js 16 n'accepte plus les deux fichiers simultanément)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 06:48:55 +04:00

79 lines
1.8 KiB
JSON

{
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "xo",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage"
},
"dependencies": {
"@directus/sdk": "^20.3.0",
"@emotion/cache": "^11.14.0",
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.1",
"@fontsource/roboto": "^5.2.9",
"@mui/icons-material": "^7.3.6",
"@mui/lab": "^7.0.1-beta.20",
"@mui/material": "^7.3.6",
"@mui/material-nextjs": "^7.3.6",
"@sentry/nextjs": "^10.48.0",
"@uiw/react-md-editor": "^4.0.11",
"date-fns": "^4.1.0",
"html2canvas": "^1.4.1",
"jspdf": "^4.0.0",
"marked": "^17.0.1",
"next": "^16.1.0",
"next-auth": "^5.0.0-beta.30",
"react": "^19.2.3",
"react-dom": "^19.2.3",
"react-virtuoso": "^4.18.1",
"use-debounce": "^10.0.5"
},
"devDependencies": {
"@vitest/coverage-v8": "^4.1.4",
"eslint-config-xo-nextjs": "^6.0.0",
"vitest": "^4.1.4",
"xo": "^0.58.0"
},
"xo": {
"extends": "xo-nextjs",
"semicolon": false,
"space": 2,
"envs": [
"browser",
"es2020"
],
"rules": {
"react/function-component-definition": [
"error",
{
"namedComponents": "function-declaration"
}
],
"n/prefer-global/process": "off",
"comma-dangle": "off",
"unicorn/prevent-abbreviations": "off"
},
"overrides": [
{
"files": "lib/__tests__/**/*.js",
"envs": [
"node",
"es2020"
],
"rules": {
"camelcase": [
"error",
{
"properties": "never"
}
],
"capitalized-comments": "off"
}
}
]
}
}