Next.js deploy not working

PLEASE help us help you by writing a good post!

  • We need to know your netlify site name. Example: gifted-antelope-58b104.netlify.app
  • https://wealthstar.netlify.app
  • DNS issues? Tell us the custom domain, tell us the error message! We can’t help if we don’t know your domain.
  • AxiosError: Request failed with status code 404\n

url
:
“undefined/api/getActiveStocks”
url is not changing

  • Build problems? Link or paste the FULL build log & build settings screenshot
  • status bage-failed
  • Did you try Ask Netlify, our generative AI chatbot, before posting? It pulls info from Support Guides and recent solved forums posts.
    yes
    The better the post - the faster the answer.

@lsjappdev Your post is indecipherable, you may want to edit it and start again.

Provide as much detail as you can about your error, the contents of your build log (if that’s where it is failing), and potentially a link to your public repository.

Hi,
Thanks for your reply.
I fixed Axios Error by changing Next.js version to 14.1.1.
Now production build completed successfully.
But unable to fix - get data from MongoDB.
all arrays returns empty. (all data from MongoDB database returns empty)
(I set the MongoDB connection URL string as environment variable)

Thanks,
Lalitha

@lsjappdev Great, glad to hear you self solved your first issue.

Unfortunately I’m not going to be able to assist you with MongoDB as I’ve never worked with it, nor have I ever tried to connect anything on Netlify directly to a database.

Thanks for your quick reply.