Scheduling infrastructure for absolutely everyone.
Adds prisma data proxy (#7706)
Omar Lópezf20d78bec1af
diff --git a/.env.example b/.env.exampleindex d1492290c44..bbe18b86bc2 100644--- a/.env.example+++ b/.env.example@@ -22,6 +22,10 @@ CALCOM_LICENSE_KEY=# - DATABASE ************************************************************************************************DATABASE_URL="postgresql://postgres:@localhost:5450/calendso"+# Opt-in to a dedicated connection pool for Prisma using Prisma Data Proxy+# Cold boots will be faster and you will be able to scale your DB independently of your application.+# @see https://www.prisma.io/docs/data-platform/data-proxy/use-data-proxy+PRISMA_GENERATE_DATAPROXY=false# ***********************************************************************************************************# - SHARED **************************************************************************************************diff --git a/.github/workflows/env-create-file.yml b/.github/workflows/env-create-file.ymlindex 7b3f0843030..920fd33810b 100644--- a/.github/workflows/env-create-file.yml+++ b/.github/workflows/env-create-file.yml@@ -39,6 +39,7 @@ jobs:runs-on: ubuntu-lateststeps:- uses: actions/checkout@v3+ - uses: ./.github/actions/dangerous-git-checkout- uses: ozaytsev86/create-env-file@v1with:file-name: ${{ github.workspace }}/gh.envdiff --git a/packages/prisma/package.json b/packages/prisma/package.jsonindex 36e268331d2..047c11436c5 100644--- a/packages/prisma/package.json+++ b/packages/prisma/package.json@@ -3,7 +3,6 @@"version": "0.0.0","private": true,"scripts": {- "build": "yarn prisma migrate deploy","clean": "rm -rf .turbo && rm -rf node_modules","db-deploy": "yarn prisma migrate deploy","db-migrate": "yarn prisma migrate dev",diff --git a/turbo.json b/turbo.jsonindex d1f067ddfc0..de3551bcc5f 100644--- a/turbo.json+++ b/turbo.json@@ -3,7 +3,7 @@"pipeline": {"@calcom/prisma#build": {"cache": false,- "dependsOn": ["post-install", "db-deploy"],+ "dependsOn": ["post-install"],"outputs": []},"@calcom/prisma#db-migrate": {@@ -48,7 +48,7 @@},"@calcom/web#start": {"cache": false,- "dependsOn": ["@calcom/prisma#db-deploy"],+ "dependsOn": [],"outputs": []},"@calcom/website#build": {@@ -242,6 +242,7 @@"$PLAYWRIGHT_HEADLESS","$PLAYWRIGHT_TEST_BASE_URL","$PRISMA_FIELD_ENCRYPTION_KEY",+ "$PRISMA_GENERATE_DATAPROXY","$QUICK","$RAILWAY_STATIC_URL","$SALESFORCE_CONSUMER_KEY",