Trying to deploy the site using netlify-cli and the deploy step hangs indefinitely. Auto-deployment is turned off and we’re using our CI to deploy via netlify-cli.
Oddly enough, this was working perfectly till 30 mins ago, here’s a successful deployment.
Site-id: 3f88b690-f9bd-454c-b40b-d8478183b450
Solved. The command needs an explicit --dir <build_directory>
.
When we try to deploy it locally, it asks for the build directory, which is not possible in CI since it will be running in non-interactive mode. My netlify.toml
didn’t have a [build]
section since I’m not running builds on Netlify, otherwise this problem would have not occurred.