Skip to content

Commit

Permalink
fix: downgrade prisma and re-apply hono middleware
Browse files Browse the repository at this point in the history
Issue is triggered by: getsentry/sentry-javascript#14793
  • Loading branch information
Stormix committed Dec 28, 2024
1 parent 9f8d874 commit ba6744d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions apps/api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,18 @@ import customSettings from './lib/custom-settings'
import { startJobs } from './lib/jobs'
import mods from './lib/mods'

import { sentry } from '@hono/sentry'
import { SENTRY_OPTIONS } from './lib/constants'
import './lib/jobs/synchronize-mods'

const app = new Hono()

app.use(
'*',
sentry({
...SENTRY_OPTIONS
})
)
app.use(etag(), logger(), secureHeaders(), trimTrailingSlash())
app.use('*', requestId())
app.use('*', cors())
Expand Down
4 changes: 2 additions & 2 deletions packages/database/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
"studio": "prisma studio"
},
"dependencies": {
"@prisma/client": "^6.1.0",
"@prisma/client": "^5.10.2",
"@tauri-apps/plugin-fs": "^2.2.0"
},
"devDependencies": {
"@deadlock-mods/eslint-config": "workspace:*",
"@deadlock-mods/typescript-config": "workspace:*",
"eslint": "^8.57.0",
"prisma": "^6.1.0",
"prisma": "^5.10.2",
"rimraf": "^5.0.5",
"tsup": "^8.0.2",
"tsx": "4.19.1",
Expand Down

0 comments on commit ba6744d

Please sign in to comment.