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
- Open Incognito Tab
- Open Site
- Open Google Chrome Devtools
- Lighthouse Tab
- Click Generate Report button