404: NOT FOUND but serverless backend and frontend work well locally

Hello, I’d really like some help. I’ve deployed a serverless DB using Neon and backend using Render and I’ve gotten it to work with those links hardcoded in my local environment. I also realigned my directory to work with Next.js based on a previous answer.

Would anyone know why I’m still getting a 404: NOT FOUND error?
My most recent changes have been pushed below and should work when running npm run build and npm run start.

There’s another community post with 404 debugging tips that might be helpful. Please give these solutions a try and let us know how it goes.

A human should be around soon to offer more advice. But you can also get helpful information quickly by asking v0.

It looks like you’re overriding the builds configuration in your vercel.json

Thank you for your reply Jacob - how can I fix this issue?

@rkang427 Could you try deleting the builds configuration from your vercel.json file?

Thank you for your reply Pauline - looks like it works when I changed the src to package.json thank you!!

1 Like

I’m glad we got there in the end! :smiley:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.