I have simple Javascript project that builds correctly locally, and I get this result
However, when I deploy it on netlify or run netlify deploy
locally I get the image below from the draft URL
In my netlify.toml
file I have the following configuration
[build]
command = "npm run build"
publish = "dist"
[dev]
command = "yarn start"
targetPort = 3000
port = 8888
publish = "dist"
What could be the issue leading to that problem?