Next.js Discord

Discord Forum

Next/Vercel project not working for my friend locally or on Vercel, but when forked no issue

Unanswered
Patrick MacDonald posted this in #help-forum
Open in Discord
Hello. My friend has a repo I've been working on, it works for me locally but not for him, locally or hosted on vercel. When I fork the repo and run it locally, it works fine, when I host it on Vercel it is fine, with no code change. To get this project to run you must set up then env file with pg, and Vercel Blob info. Or you can connect your pg and blob to your project. By putting a console log I can tell the server action is not happening. Checking the console on his vercel project and clicking submit you get a uncaught (in promise) something about it being omitted in production builds to avoid leaking sensitive details and no error message at all locally on his computer. Also be saying not working I mean the server action to save the image to vercel blob and save the info to the pg db.

0 Replies