I deployed my project on Vercel and getting 500 error [id].tsx page but in localhost its fine
How can I fix that? https://guest-book.caglark.dev
Guest Book
Generated by create-t3-app
14 Replies
you should check vercel logs
vercel -> [project] -> deployments -> select latest deployment -> functions -> reload the page
should display the log on the server
yep, it says prisma is not defined
GitHub
prisma-examples/typescript/rest-nextjs-api-routes at latest · prism...
🚀 Ready-to-run Prisma example projects. Contribute to prisma/prisma-examples development by creating an account on GitHub.
you can check this example from prisma and gssp
I do the same thing,
Do you see something weird?
why
prisma?.
I dont know it makes things simplier
my issue is the ?.
it implies prisma may be nullable
and probably is the cause of the issue
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
thank you, I didnt realize that
on the example they just import elsewhere
yes sir you are totally right
@Neto @git commit -m "changes" +250k -3 that fixed my problem thank you again. https://guest-book.caglark.dev/profile/clatoh3bk0000vxvkqdd23xxg
| Guest Book
Generated by create-t3-app