Fix vercel env key

This commit is contained in:
MartinBraquet
2025-08-28 17:29:03 +02:00
parent dfa1d1c76e
commit 26915ea94f
2 changed files with 2 additions and 2 deletions

View File

@@ -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=

View File

@@ -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)
}