7 months ago
I redeployed a working commit on vercel but the redeployment failed to work. so is any new commites following the last working commit.
npm run vercel-build work locally
"vercel-build": "prisma generate && next build",
didn't change env var in between deployment
Error build log i get:
Error: Service database is not available
08:15:52.752 at S.getImmediate (/vercel/path0/.next/server/chunks/7024.js:226:830)
08:15:52.752 at rd (/vercel/path0/.next/server/chunks/7024.js:1216:7861)
08:15:52.752 at 17619 (/vercel/path0/.next/server/app/profile/page.js:1:35909)
08:15:52.752 at t (/vercel/path0/.next/server/webpack-runtime.js:1:143)
08:15:52.752 at 60087 (/vercel/path0/.next/server/app/profile/page.js:1:21630)
08:15:52.752 at Object.t [as require] (/vercel/path0/.next/server/webpack-runtime.js:1:143)
08:15:52.752 at require (/vercel/path0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:16:18365)
08:15:52.752 at I (/vercel/path0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:94362)
08:15:52.752 at /vercel/path0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:96668
08:15:52.753 at F._fromJSON (/vercel/path0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:97106) {
08:15:52.753 digest: '3362905500'
08:15:52.753}
08:15:52.753
08:15:52.753Error occurred prerendering page "/profile". Read more: https://nextjs.org/docs/messages/prerender-error
08:15:52.754
08:15:52.754Error: Service database is not available
08:15:52.754 at S.getImmediate (/vercel/path0/.next/server/chunks/7024.js:226:830)
08:15:52.754 at rd (/vercel/path0/.next/server/chunks/7024.js:1216:7861)
08:15:52.754 at 17619 (/vercel/path0/.next/server/app/profile/page.js:1:35909)
08:15:52.754 at t (/vercel/path0/.next/server/webpack-runtime.js:1:143)
08:15:52.754 at 60087 (/vercel/path0/.next/server/app/profile/page.js:1:21630)
08:15:52.754 at Object.t [as require] (/vercel/path0/.next/server/webpack-runtime.js:1:143)
08:15:52.754 at require (/vercel/path0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:16:18365)
08:15:52.754 at I (/vercel/path0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:94362)
08:15:52.754 at /vercel/path0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:96668
08:15:52.754 at F._fromJSON (/vercel/path0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:97106)
08:15:52.843
1 Replies
7 months ago
Since this is an app hosted on vercel, you will need to use the public host and port for the database.