6 Deployment

 

This chapter covers

  • Options for hosting your Jamstack site
  • Using basic web servers
  • Considering cloud file storage providers
  • Choosing options tailored for the Jamstack

Congratulations! You’ve adopted the Jamstack way and have discovered the joy of using a local static site generator to turn dynamic content into simple files. The next step is to get those files on the internet so that they can be an actual website as opposed to a set of bits on your device.

In this chapter, we’re going to cover multiple different options for getting those files online and available to the world at large. We’ll cover the pros and cons of each, so you can determine which option makes sense for you and your project.

6.1 Web servers—The tried-and-true way

The first and simplest solution for hosting your Jamstack content is the solution we’ve used since the beginning of the web: a simple web server. Web servers like Apache (http://httpd.apache.org/) and IIS (https://www.iis.net/) have been around for decades and have powered everything from the smallest fan site to the largest e-commerce sites on the internet.

Using these options means simply taking the result of your static site generator (HTML, CSS, and other related files) and copying them somewhere under the “web root” of your existing web server.

6.2 Cloud file storage providers

6.2.1 Amazon S3

6.2.2 Other cloud file storage hosting options

6.3 Azure Static Web Apps

6.4 Deploying with Vercel

6.5 Deploying with Netlify

Summary