How to disable deploy preview when deploying from local CLI

Hi Everyone,

I am deploying my GatsbyJS website from my local computer -> CLI by

/path/to/gatsby/project$ netlify build && netlify deploy --prod

At the end I get a preview URL like https://5f5cd1ec05d1512a8df874--sohelahmed-site.netlify.app (Unique Deploy URL)

How can I disable it? My requirement is to just deploy to my live website domain name

Current behavior might create issues for SEO about duplicate content

Feel free to let me know if more info needed

Thanks.

There is always a deploy preview URL for every deploy, @sohelahmed - no way to disable it.

You’ll see here how we prevent SEO problems with that URL automatically: Improved SEO with canonical link headers :slight_smile:

1 Like