I have changed to npm run build , CI = '', CI = npm run build but the problem still persist

9:24:37 PM: ​
9:24:37 PM: ────────────────────────────────────────────────────────────────
9:24:37 PM: “build.command” failed
9:24:37 PM: ────────────────────────────────────────────────────────────────
9:24:37 PM: ​
9:24:37 PM: Error message
9:24:37 PM: Command failed with exit code 1: next build
9:24:37 PM: ​
9:24:37 PM: Error location
9:24:37 PM: In Build command from Netlify app:
9:24:37 PM: next build
9:24:37 PM: ​
9:24:37 PM: Resolved config
9:24:37 PM: build:
9:24:37 PM: command: next build
9:24:37 PM: commandOrigin: ui
9:24:37 PM: environment:
9:24:37 PM: - NEXT_PRIVATE_TARGET
9:24:37 PM: publish: /opt/build/repo/.next
9:24:37 PM: publishOrigin: ui
9:24:37 PM: plugins:
9:24:37 PM: - inputs: {}
9:24:37 PM: origin: ui
9:24:37 PM: package: ‘@netlify/plugin-nextjs’

Hi there, glad you found us :wave:

Sorry to hear you are encountering obstacles. Before we can help you, we need a little more information on the issues you are facing.

First, have you looked through this resource? It is a compilation of all of our build and deploy resources. This is a good starting point.

If you have worked through those guides and are still encountering issues please share the following information:

  • your FULL deploy log
  • your project repo, if public
  • your package.json or .toml file
  • the name of your build instance: “example-jones.netlify.com
  • what you have already tried
  • any error messages you have received in your terminal window or in the developer console
1 Like

Thanks a lot hillary for giving your valuable time for considering my issue… but i am glad to say that i have fixed the issue by changing some file structure of my app … i have created a folder called data inside the pages folder considering its a next project, but when i changed that whole data folder location to parent location means the outside most location where we have index.js file, packages.json files etc. and pushed to git. the problem got solved.

But I will definitely post if any issues will happen

Glad that everything is working for you now, @bazilNizam. Happy building :rocket: