Skip to content

Commit

Permalink
build(db): move from vercel db to neon
Browse files Browse the repository at this point in the history
  • Loading branch information
Clement-Muth committed Oct 27, 2024
1 parent 5994e2b commit fc131c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
datasource db {
provider = "postgresql"
url = env("POSTGRES_PRISMA_URL")
directUrl = env("POSTGRES_URL_NON_POOLING")
url = env("DATABASE_URL")
}

generator client {
Expand Down
2 changes: 1 addition & 1 deletion src/libraries/prisma/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { PrismaNeon } from "@prisma/adapter-neon";
import { PrismaClient } from "@prisma/client";

const neon = new Pool({
connectionString: process.env.POSTGRES_PRISMA_URL
connectionString: process.env.DATABASE_URL
});
const adapter = new PrismaNeon(neon);

Expand Down

0 comments on commit fc131c5

Please sign in to comment.