Briefly summarize the issues you have been experiencing.
I am trying to deploy a next.js site using netlify.
I could able to build the on the machine (Cleared cache and tried as well). But when I try to push it to my git repository and trigger auto deployment with netlify it is failing.
So, I have downloaded the Netlify-cli and tried using the command netlify build
and it works like charm in my machine. I am sure there is NO issue with the NextJs build setup and code. Need help from understanding the cause for failure only on netflix.
Please provide a link to your live site hosted on Netlify
Site was not live due to this error
What have you tried as far as troubleshooting goes? Do you have an idea what is causing the problem?
- Building locally works fine
- Building locally with
netlify build
also works fine
Do you have any other information that is relevant, such as links to docs, libraries, or other resources?
Logs attached