From 0ae54154e0f0dae3f2ca223e850e864158ce1e79 Mon Sep 17 00:00:00 2001 From: ChrQR Date: Mon, 13 May 2024 10:15:55 +0200 Subject: [PATCH] - updated actions to v4 in workflow - Set up Postgres db on vercel --- .gitea/workflows/vercel-production.yaml | 2 +- prisma/schema.prisma | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/vercel-production.yaml b/.gitea/workflows/vercel-production.yaml index 727b98b..aef62e8 100644 --- a/.gitea/workflows/vercel-production.yaml +++ b/.gitea/workflows/vercel-production.yaml @@ -10,7 +10,7 @@ jobs: Deploy-Production: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install Vercel CLI run: npm install --global vercel@latest - name: Pull Vercel Environment Information diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 5498643..52544ff 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -6,8 +6,9 @@ generator client { } datasource db { - provider = "mysql" - url = env("DATABASE_URL") + provider = "postgresql" + url = env("POSTGRES_PRISMA_URL") // uses connection pooling + directUrl = env("POSTGRES_URL_NON_POOLING") // uses a direct connection } model Post {