Hi,
First of all, Hugo (with PaperMod theme) is great.
but I have a problem to deploy hugo
the log
12:16:03 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2 (Search results for '"non-zero exit code: 2"' - Netlify Support Forums)
12:16:03 PM: Netlify Build
12:16:03 PM: ────────────────────────────────────────────────────────────────
12:16:03 PM:
12:16:03 PM: ❯ Version
12:16:03 PM: @netlify/build 29.46.5
12:16:03 PM:
12:16:03 PM: ❯ Flags
12:16:03 PM: baseRelDir: true
12:16:03 PM: buildId: 66653a77879b558026bed8ea
12:16:03 PM: deployId: 66653a77879b558026bed8ec
12:16:03 PM:
12:16:03 PM: ❯ Current directory
12:16:03 PM: /opt/build/repo
12:16:03 PM:
12:16:03 PM: ❯ Config file
12:16:03 PM: /opt/build/repo/netlify.toml
12:16:03 PM:
12:16:03 PM: ❯ Context
12:16:03 PM: production
12:16:03 PM:
12:16:03 PM: build.command from netlify.toml
12:16:03 PM: ────────────────────────────────────────────────────────────────
12:16:03 PM:
12:16:03 PM: $ hugo --gc --minify
12:16:03 PM: Start building sites …
12:16:03 PM: hugo v0.127.0-74e0f3bd63c51f3c7a0f07a7c779eec9e922957e+extended linux/amd64 BuildDate=2024-06-05T10:27:59Z VendorInfo=gohugoio
12:16:03 PM: ERROR failed to process “/gallery/project/index.html”: “/tmp/hugo-transform-error297931207:89:40”: expected comma character or an array or object ending on line 89 and column 40
12:16:03 PM: 12: {
12:16:03 PM: ^
12:16:03 PM: ERROR failed to process “/gallery/mechanical/index.html”: “/tmp/hugo-transform-error3493936153:89:40”: expected comma character or an array or object ending on line 89 and column 40
12:16:03 PM: 12: {
12:16:03 PM: ^
12:16:03 PM: ERROR failed to process “/gallery/nft-expo-la/index.html”: “/tmp/hugo-transform-error302538247:89:40”: expected comma character or an array or object ending on line 89 and column 40
12:16:03 PM: 12: {
12:16:03 PM: ^
12:16:03 PM: ERROR failed to process “/gallery/liqot/index.html”: “/tmp/hugo-transform-error2176596204:89:40”: expected comma character or an array or object ending on line 89 and column 40
12:16:03 PM: 12: {
12:16:03 PM: ^
12:16:03 PM: Total in 84 ms
12:16:03 PM: Error: error building site: render: failed to render pages: failed to process “/posts/about/index.html”: “/tmp/hugo-transform-error4050070883:92:40”: expected comma character or an array or object ending on line 92 and column 40
12:16:03 PM: 12: {
12:16:03 PM: ^
12:16:03 PM:
12:16:03 PM: “build.command” failed
12:16:03 PM: ────────────────────────────────────────────────────────────────
12:16:03 PM:
12:16:03 PM: Error message
12:16:03 PM: Command failed with exit code 1: hugo --gc --minify (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
12:16:03 PM:
12:16:03 PM: Error location
12:16:03 PM: In build.command from netlify.toml:
12:16:03 PM: hugo --gc --minify
12:16:03 PM:
12:16:03 PM: Resolved config
12:16:03 PM: build:
12:16:03 PM: command: hugo --gc --minify
12:16:03 PM: commandOrigin: config
12:16:03 PM: environment:
12:16:03 PM: - HUGO_VERSION
12:16:03 PM: - HUGO_ENV
12:16:03 PM: - HUGO_ENABLEGITINFO
12:16:03 PM: publish: /opt/build/repo/public
12:16:03 PM: publishOrigin: config
12:16:03 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
12:16:03 PM: Failing build: Failed to build site
12:16:04 PM: Finished processing build request in 17.596s
can someone help me?