nextacular / nextacular

An open-source starter kit that will help you build full-stack multi-tenant SaaS platforms efficiently and help you focus on developing your core SaaS features. Built on top of popular and modern technologies such as Next JS, Tailwind, Prisma, and Stripe.

Home Page:https://nextacular.co

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invalid `prisma.workspace.findMany()` invocation error when deploying

jamesnewportbeach opened this issue · comments

Describe the bug

Great repo! This all builds fine and works locally for me - I can set up workspaces and i'm getting the emails with SendGrid, but when I try and deploy it, i'm getting this error - just using the same database environment variables as i'm using locally to connect to my supabase postgres instance:

21:48:31.363 | PrismaClientInitializationError:
21:48:31.364 | Invalid prisma.workspace.findMany() invocation:
21:48:31.364 |  
21:48:31.364 |  
21:48:31.365 | Error querying the database: db error: FATAL: server login has been failing, try again later (server_login_retry)
21:48:31.366 | at Zr.handleRequestError (/vercel/path0/node_modules/@prisma/client/runtime/library.js:171:6688)
21:48:31.366 | at Zr.handleAndLogRequestError (/vercel/path0/node_modules/@prisma/client/runtime/library.js:171:5948)
21:48:31.366 | at /vercel/path0/node_modules/@prisma/client/runtime/library.js:174:3087
21:48:31.367 | at async /vercel/path0/node_modules/@prisma/client/runtime/library.js:174:3268 {
21:48:31.367 | clientVersion: '4.11.0',
21:48:31.367 | errorCode: undefined
21:48:31.367 | }
21:48:31.368 |  
21:48:31.368 | > Build error occurred
21:48:31.373 | Error: Failed to collect page data for /_sites/[site]
21:48:31.373 | at /vercel/path0/node_modules/next/dist/build/utils.js:1055:15 {
21:48:31.373 | type: 'Error'
21:48:31.374 | }
21:48:31.444 | Error: Command "npm run build" exited with 1
21:48:31.870 | BUILD_UTILS_SPAWN_1: Command "npm run build" exited with 1

To Reproduce
Following the Nextacular setup instructions...