mosh-hamedani/issue-tracker

Got application error after deploy on vercel

Opened this issue · 1 comments

After I deploy issue-tracker on vercel, when I keep refreshing on list page/ issue detail page, I will get an error

Application error: a client-side exception has occurred (see the browser console for more information).
Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.

this error does not happed when I run npm run dev or npm run start

After I deploy issue-tracker on vercel, when I keep refreshing on list page/ issue detail page, I will get an error

Application error: a client-side exception has occurred (see the browser console for more information).
Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.

this error does not happed when I run npm run dev or npm run start

  1. You need to make sure all your environment variables are there.
  2. You need to host your MySQL database somewhere & make sure you are not using localhost as your database connection URL.