From 26915ea94f737302c408d5eaa5e56607adfeaa38 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Thu, 28 Aug 2025 17:29:03 +0200 Subject: [PATCH] Fix vercel env key --- .env.example | 2 +- common/src/secrets.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 26965543..9c6ccf75 100644 --- a/.env.example +++ b/.env.example @@ -2,7 +2,7 @@ # Or manually run `npx prisma init --db` to create a Prisma Postgres and manually set the `DATABASE_URL` below # Create a random 32-character string or run `npx auth secret` to obtain one and set it as the `AUTH_SECRET` below - +LOCAL=1 GOOGLE_CLIENT_ID= GOOGLE_CLIENT_SECRET= NEXTAUTH_SECRET= diff --git a/common/src/secrets.ts b/common/src/secrets.ts index ede4e1c9..a2add2ea 100644 --- a/common/src/secrets.ts +++ b/common/src/secrets.ts @@ -76,7 +76,7 @@ export const getServiceAccountCredentials = (env: 'PROD' | 'DEV') => { env === 'PROD' ? process.env.PROD_FIREBASE_SERVICE_ACCOUNT_KEY : process.env.DEV_FIREBASE_SERVICE_ACCOUNT_KEY - if (value) { + if (value && !process.env.LOCAL) { return JSON.parse(value) }