From e5a60f7e9ec9209bff6aeb4befb6eaa9a20570ca Mon Sep 17 00:00:00 2001 From: Adam Siekierski Date: Thu, 14 Nov 2024 22:34:25 +0100 Subject: [PATCH 1/2] Update .env.sample --- .env.sample | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.env.sample b/.env.sample index a8042e4..3499e3e 100644 --- a/.env.sample +++ b/.env.sample @@ -1,2 +1,3 @@ -DATABASE_URL="postgresql://postgres:postgres@localhost:5432/amnesty?schema=public" +POSTGRES_URL="postgresql://postgres:postgres@localhost:5432/amnesty?schema=public" +POSTGRES_URL_NON_POOLING="postgresql://postgres:postgres@localhost:5432/amnesty?schema=public" JWE_SECRET=[some supersecret string used to encrypt auth tokens] From e8ec55ab1f6165fc8053c26de7a2f44c34e304c8 Mon Sep 17 00:00:00 2001 From: Adam Siekierski Date: Thu, 14 Nov 2024 22:35:13 +0100 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 336e5e1..5fb46ca 100644 --- a/README.md +++ b/README.md @@ -117,6 +117,6 @@ If you want to deploy this app on your own (we are not planning on transfering o 1. Fork or clone this repo 2. Set up a a deployment of your own choice - all you need to provide is a hosting for the Next.js app, and the following environment variables: - - DATABSE_URL: the connection string/url of the PostgreSQL database. You can also use the [Prisma Cloud Data Proxy](https://www.prisma.io/docs/concepts/components/prisma-data-platform). You can always inspire from the way [how we deployed the app](#deployment) 😄 + - POSTGRES_URL: the connection string/url of the PostgreSQL database. You can also use the [Prisma Cloud Data Proxy](https://www.prisma.io/docs/concepts/components/prisma-data-platform). You can always inspire from the way [how we deployed the app](#deployment) 😄 Our suggestion for the simpliest and fastest deployment setup is just using Heroku for both deploying the App and Database, without having to worry about Prisma Cloud. But the limitation is a harder setup of multiple environments.