Deploy log Shows Successfully Deployed buy page shows 500- Internal Server Error

Site Name: https://thirsty-lumiere-e74307.netlify.app/
Deployment Log: Netlify App

Hi,

I have tried to deploy my first site from GitHub Repo and everything seems to be fine,

I’ve tried to run netlify dev from local and it works as well on my localhost, however once the site has been deployed, it only shows 500-internal Server Error on the link above…
image

Please kindly advice and thank you for your help!

Thanks!

1 Like

Hi,

You can check the server-side logs for Next.js here: Netlify App

In my testing, I got this error:

ERROR  PrismaClientInitializationError3 [PrismaClientInitializationError]: Error querying the database: unable to open database file: ./dev.db
    at cb (/var/task/node_modules/@prisma/client/runtime/index.js:36500:17)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async getServerSideProps (/var/task/.next/server/pages/index.js:563:19)
    at async Object.renderToHTML (/var/task/node_modules/next/dist/server/render.js:555:20)
    at async doRender (/var/task/node_modules/next/dist/server/base-server.js:1406:38)
    at async /var/task/node_modules/next/dist/server/base-server.js:1501:28
    at async /var/task/node_modules/next/dist/server/response-cache.js:63:36 {
  clientVersion: '2.30.3',
  errorCode: undefined
}

This would indicate that you’ve not added the ./dev.db file to your function. You might want to add it like: