I’m currently deploying a site (both as drafts and to production) using netlify-cli on a GitLab CI runner. The command to deploy drafts I use is the following:
netlify deploy --site $NETLIFY_SITE_ID --auth $NETLIFY_AUTH_TOKEN --json | tee deployResults.json
Deploys are successfull, but the Slack integration which posts this message when a deploy is successful has the production URL in the title. I would prefer if it would directly link to the deployed draft subdomain (under netlify.app).
I’ve tried looking for an option to change this behavior, but I can’t find it anywhere. iirc the link is correct for Netlify regular builds, it’s just deploys through
netlify-cli that are failing.
The site ID is hocus-app.netlify.app (or time.hocus.app).