diff --git a/.env.example b/.env.example index 5200558c..8da4a77d 100644 --- a/.env.example +++ b/.env.example @@ -14,7 +14,7 @@ DATABASE_URL="" NEXT_PUBLIC_URL="http://localhost:3000" -NEXT_PUBLIC_VERCEL_ENV="production" # set to "development" or leave it empty for local development + # Uploadthing UPLOADTHING_SECRET="" diff --git a/postinstall.mjs b/postinstall.mjs index a12f7f33..159f5993 100644 --- a/postinstall.mjs +++ b/postinstall.mjs @@ -6,8 +6,8 @@ import { execSync } from 'child_process'; // Always run prisma generate execSync('prisma generate', { stdio: 'inherit' }); -// Only run prisma db push if NEXT_PUBLIC_VERCEL_ENV is production +// Only run prisma db push if VERCEL_ENV is production // eslint-disable-next-line no-process-env -if (process.env.NEXT_PUBLIC_VERCEL_ENV === 'production') { +if (process.env.VERCEL_ENV === 'production') { execSync('prisma db push', { stdio: 'inherit' }); }