Deploying to Aerobatic
Aerobatic is a specialized static site host. You can easily deploy your Gatsby site to Aerobatic with the following steps:
- Install the Aerobatic CLI:
npm install aerobatic-cli -g
- Create a new Aerobatic site at the root of your Gatsby project:
aero create --name <your-site-name>
- Deploy your Gatsby build output:
aero deploy --directory public
Your site will be ready on their CDN at
https://<your-site-name>.aerobaticapp.com in a matter of seconds.
There are some additional HTTP header optimizations you can configure in your
deploy:# Note with below setting it is not necessary to pass --directory to aero deploy commanddirectory: public# Turn off the Aerobatic asset fingerprinting since Gatsby already does thisoptimizer:fingerprintAssets: falseplugins:# Force aggressive 1yr max-age header for all .js and .js.map requests- name: http-headerspath: ["/*.js", "/*.js.map"]options:"Cache-Control": "public, max-age=31536000"- name: webpage
- Learn more about Gatsby and Aerobatic on Aerobatic’s site.
Edit this page on GitHub