In this article, I’m going to show you what kind of advantages you can get by using Netlify.
You can customize your site’s Netlify subdomain.
When creating a new project on Netlify, you start by either:
- choosing a repository from a Git provider, or
- uploading a folder.
The project should be ready in a matter of minutes, and you could start configuring it for your needs right away. Start by choosing the site name.
The site name determines the default
for your site. Only alphanumeric characters and hyphens are allowed.
Netlify randomly creates a default name for a new project. If you don’t like the name, choose your own and make it one that would be much easier for you to remember.
The “Site information” section of the Netlify dashboard.
You can manage all your
If you are setting up an actual site, you would want to add a custom domain. From the domain management panel, go to the custom domains section, click on the “Add custom domain” button, enter your domain, and click the “Verify” button.
Now you have two options:
- Point your DNS records to Netlify load balancer IP address
- Let Netlify handle your DNS records
For the first option, you could read the full instructions in the official documentation for custom domains.
For the second option, you should add or update the nameservers on your domain registrar. If you didn’t buy the domain already, you could register it right from the dashboard.
Netlify has a service for provisioning DNS records called Netlify DNS.
Once you have configured the custom domain, you could handle your
records from the Netlify dashboard.
The “DNS” section of the Netlify dashboard.
If you want to set up a dev subdomain for your
dev branch to preview development changes for your site, you could do it automatically. From the Domain Management section in the Settings section of your site, select the
dev branch and Netlify would add a new subdomain
dev for you automatically. Now you could see the previews by visiting the dev subdomain.
The “Subdomains” section of the Netlify dashboard.
You could configure a subdomain for a different website. To achieve this, create a new Netlify site, enter a new subdomain as a custom domain, and Netlify would automatically add the records for you.
As icing on the
management cake, Netlify lets you create Let’s Encrypt certificates for your domain automatically… for free.
Every deployment has its own URL forever.
Netlify creates a unique preview link for every successful build. That means you could easily compare revisions made to your site.
Netlify allows for the cleanest and most responsible A/B testing you can do.
If you ever wanted to run A/B tests on your site, you would find that Netlify makes running A/B tests quite straightforward. Split testing on Netlify allows you to display different versions of your website from different Git branches without any hackery.
The “Split testing” section of the Netlify dashboard.
Start by adding and publishing a separate branch with desired changes. From the “Split testing” panel, select which branches to test, set a split percentage, and start the test. You could even set a variable in analytics code to track which branch is currently displayed. You might need to active branch deploys if you didn’t do this already.
There are lots of options for notifications, like email and Slack.
If you want to receive a notification when something happens with your Netlify project, you could choose from a wide variety of notification options. I prefer getting an email for every successful or failed build.
The “Notifications” section of the Netlify dashboard.
If you are using Gmail, you could notice “See the changes live” link for every successful build when hovering your message in Gmail inbox. That means you could open a preview link without opening the email. There are other links like “See full deploy logs” when your build have any issues or “Check usage details” when your plan is near its limits. How awesome is that?
Netlify email notifications include a preview link.
If you want to set up a hook for third-party services, all you need is a
the secret token is optional). Slack hooks are built-in with Netlify and could be set up within seconds if you know your Slack incoming webhook
All of the features mentioned above are part of the free Netlify plan. I cannot even imagine the effort invested in providing a seamless experience as it is now. But Netlify doesn’t stop there. They are introducing more and more new and shiny features, like Netlify Dev CLI for local development and deploy cancelations. Netlify has been established as an undoubtedly game-changing platform in the modern web development of static websites, and it is a big part of the growth and popularity of static sites.
You should also read this article.
Wahaab Siddique is the blogger and founder of wahaabsiddique.com, along with this, he is a student of Civil Engineering.