To recreate it you can clone my branch github link :- https://github.com/WOLFIEEEE/Gatsby-portfolio/tree/trying-heroku-1
and too see the error you can go to link:- https://app.netlify.com/sites/wolfie-portfolio/deploys/5feabd7bb15555000765b2f5
I am deploying My strapi to heroku. When i run my project locally I dont get any error it runs smooth and when I push same thing to github and strapi try to build it is fails .
I am new to this if someone can help me out it would be great help
error Failed to retrieve metadata from image /opt/build/repo/src/assets/hero-img.png
10:55:49 AM:
10:55:49 AM:
10:55:49 AM: Error: Input file contains unsupported image format
10:55:49 AM:
10:55:49 AM: not finished run static queries - 0.053s
10:55:49 AM: npm ERR! code ELIFECYCLE
10:55:49 AM: npm ERR! errno 1
10:55:49 AM: npm ERR! gatsby-starter-hello-world@0.1.0 build: `gatsby build`
10:55:49 AM: npm ERR! Exit status 1
10:55:49 AM: npm ERR!
10:55:49 AM: npm ERR! Failed at the gatsby-starter-hello-world@0.1.0 build script.
10:55:49 AM: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
10:55:49 AM: npm ERR! A complete log of this run can be found in:
10:55:49 AM: npm ERR! /opt/buildhome/.npm/_logs/2020-12-29T05_25_49_093Z-debug.log
10:55:49 AM:
10:55:49 AM: ────────────────────────────────────────────────────────────────
10:55:49 AM: "build.command" failed
10:55:49 AM: ────────────────────────────────────────────────────────────────
10:55:49 AM:
10:55:49 AM: Error message
10:55:49 AM: Command failed with exit code 1: npm run build
10:55:49 AM:
10:55:49 AM: Error location
10:55:49 AM: In Build command from Netlify app:
10:55:49 AM: npm run build ```
this is the error I got you can check above netlify link for more info