-my netlify.toml
[build]
command = “next build”
functions = “netlify/functions”
publish = “.next”
“scripts”: {
“dev”: “next dev”,
“build”: “next build”,
“start”: “next start”,
“lint”: “next lint”
},
10:03:00 AM: “build.command” failed
10:03:00 AM: ────────────────────────────────────────────────────────────────
10:03:00 AM:
10:03:00 AM: Error message
10:03:00 AM: Command failed with exit code 1: next build (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
10:03:00 AM:
10:03:00 AM: Error location
10:03:00 AM: In build.command from netlify.toml:
10:03:00 AM: next build
10:03:00 AM:
10:03:00 AM: Resolved config
10:03:00 AM: build:
10:03:00 AM: command: next build
10:03:00 AM: commandOrigin: config
10:03:00 AM: environment:
10:03:00 AM: - NEXT_PRIVATE_TARGET
10:03:00 AM: publish: /opt/build/repo/.next
10:03:00 AM: publishOrigin: config
10:03:00 AM: functionsDirectory: /opt/build/repo/netlify/functions
10:03:00 AM: plugins:
10:03:00 AM: - inputs: {}
10:03:00 AM: origin: ui
10:03:00 AM: package: ‘@netlify/plugin-nextjs’
The better the post - the faster the answer.