Skip to content

Commit

Permalink
Add vercel postgress env setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreasgdp committed May 2, 2023
1 parent 916f734 commit 8e6a27c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ generator client {

datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
url = env("POSTGRES_PRISMA_URL") // uses connection pooling
directUrl = env("POSTGRES_URL_NON_POOLING") // uses a direct connection
shadowDatabaseUrl = env("POSTGRES_URL_NON_POOLING") // used for migrations
}

model Users {
Expand Down

2 comments on commit 8e6a27c

@vercel
Copy link

@vercel vercel bot commented on 8e6a27c May 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

mealtime-api – ./apps/api

mealtime-api-mealtime.vercel.app
mealtime-api.vercel.app
mealtime-api-git-master-mealtime.vercel.app
mtapi.bhelpful.net

@vercel
Copy link

@vercel vercel bot commented on 8e6a27c May 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

mealtime – ./

mealtime-git-master-mealtime.vercel.app
mealtime.bhelpful.net
mealtime-mealtime.vercel.app

Please sign in to comment.