Skip to main content

Build & Deploy

We'll go into more detail in the corresponding lab but building, deploying, and auditing your Gatsby app is summarized below.

Build

gatsby build
gatsby serve

This does a production build of your site and outputs the built static files into the public directory.

Deploy

Copy the public directory to your web server. Since the site is static files you can use any static web server or web host.

Audit

  1. Open Incognito Tab
  2. Open Site
  3. Open Google Chrome Devtools
  4. Lighthouse Tab
  5. Click Generate Report button