Skip to content

Commit

Permalink
Merge pull request #48 from premieroctet/feature/vercel-storage-demo
Browse files Browse the repository at this point in the history
feat: use vercel pg for demo
  • Loading branch information
baptadn authored Sep 7, 2023
2 parents 7105e5c + 3d76e61 commit 18c9f04
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB.
# See the documentation for all the connection string options: https://pris.ly/d/connection-strings

DATABASE_URL="postgresql://next-admin:next-admin@localhost:5432/next-admin?schema=public"
POSTGRES_PRISMA_URL="postgresql://next-admin:next-admin@localhost:5432/next-admin?schema=public"
POSTGRES_URL_NON_POOLING="postgresql://next-admin:next-admin@localhost:5432/next-admin?schema=public"
BASE_URL="http://localhost:3000/admin"
BASE_DOMAIN="http://localhost:3000"
```
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB.
# See the documentation for all the connection string options: https://pris.ly/d/connection-strings

DATABASE_URL="postgresql://next-admin:next-admin@localhost:5432/next-admin?schema=public"
POSTGRES_PRISMA_URL="postgresql://next-admin:next-admin@localhost:5432/next-admin?schema=public"
POSTGRES_URL_NON_POOLING="postgresql://next-admin:next-admin@localhost:5432/next-admin?schema=public"
5 changes: 3 additions & 2 deletions apps/example/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ generator jsonSchema {
}

datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
provider = "postgresql"
url = env("POSTGRES_PRISMA_URL")
directUrl = env("POSTGRES_URL_NON_POOLING")
}

enum Role {
Expand Down

2 comments on commit 18c9f04

@vercel
Copy link

@vercel vercel bot commented on 18c9f04 Sep 7, 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:

next-admin – ./apps/example

next-admin-premieroctet.vercel.app
next-admin-git-main-premieroctet.vercel.app
next-admin-po.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 18c9f04 Sep 7, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.