Skip to content

Commit

Permalink
Update prisma monorepo to ^5.8.1 (#304)
Browse files Browse the repository at this point in the history
* Update prisma monorepo to ^5.8.1

* update overrides

* move to db url

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Josh Calder <[email protected]>
  • Loading branch information
renovate[bot] and borisno2 authored Jan 17, 2024
1 parent 5dffd76 commit 39546ec
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 69 deletions.
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"@keystone-6/core": "^5.7.1",
"@marsidev/react-turnstile": "^0.4.0",
"@planetscale/database": "^1.13.0",
"@prisma/adapter-planetscale": "^5.7.1",
"@prisma/client": "5.7.1",
"@prisma/adapter-planetscale": "^5.8.1",
"@prisma/client": "5.8.1",
"@radix-ui/react-avatar": "^1.0.4",
"@radix-ui/react-hover-card": "^1.0.7",
"@sendgrid/mail": "^8.1.0",
Expand Down Expand Up @@ -85,18 +85,18 @@
"eslint-config-next": "14.0.4",
"prettier": "^3.1.1",
"prettier-plugin-tailwindcss": "^0.5.10",
"prisma": "5.7.1",
"prisma": "5.8.1",
"tsx": "^4.7.0",
"turbo": "^1.11.2",
"typescript": "^5.3.3"
},
"packageManager": "[email protected]",
"pnpm": {
"overrides": {
"prisma": "5.7.0",
"@prisma/client": "5.7.0",
"@prisma/internals": "5.7.0",
"@prisma/migrate": "5.7.0",
"prisma": "5.8.1",
"@prisma/client": "5.8.1",
"@prisma/internals": "5.8.1",
"@prisma/migrate": "5.8.1",
"next": "^14.0.0"
}
},
Expand Down
128 changes: 69 additions & 59 deletions pnpm-lock.yaml

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

7 changes: 4 additions & 3 deletions src/keystone/context/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ import type { Context } from '.keystone/types'
class PlanetScalePrismaClient extends PrismaModule.PrismaClient {
constructor(ksConfig: any) {
const config = {
host: process.env.DATABASE_HOST,
username: process.env.DATABASE_USERNAME,
password: process.env.DATABASE_PASSWORD,
url: process.env.DATABASE_URL,
// host: process.env.DATABASE_HOST,
// username: process.env.DATABASE_USERNAME,
// password: process.env.DATABASE_PASSWORD,
}

// Initialize Prisma Client with the PlanetScale serverless database driver
Expand Down

0 comments on commit 39546ec

Please sign in to comment.