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.


gatsby build
gatsby serve

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


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


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