Platforms for deploying static builds
As static builds are a far more common and predictable format, there are plenty more options for where you can host them. We have already looked at Gatsby Cloud, which can deploy static sites in the same way as it does hybrid. Now, let's look at three other platforms – Netlify, Render, and Firebase.
Deploying to Netlify
Netlify is the deployment platform used for over 500,000 websites. It is popular among developers for its ease of use. It also provides a free Secure Sockets Layer (SSL). Let's learn how we can deploy our site with Netlify:
- Install the Netlify plugin:
npm install --save gatsby-plugin-netlify
Here, we are installing the Netlify plugin, which adds basic security headers during the build for the Netlify platform.
- Include the
gatsby-plugin-netlify
plugin in yourgatsby-config.js
file:module.exports = { // rest of config plugins: [ `gatsby-plugin-netlify`, // other plugins ] }
- Commit...