Skip to main content

Deploying to Aerobatic

Aerobatic is a specialized static site host. You can easily deploy your Gatsby site to Aerobatic with the following steps:

  1. Install the Aerobatic CLI:

npm install aerobatic-cli -g

  1. Create a new Aerobatic site at the root of your Gatsby project:

aero create --name <your-site-name>

  1. Deploy your Gatsby build output:

aero deploy --directory public

Your site will be ready on their CDN at https://<your-site-name> in a matter of seconds.

There are some additional HTTP header optimizations you can configure in your aerobatic.yml file:

  # Note with below setting it is not necessary to pass --directory to aero deploy command
  directory: public
  # Turn off the Aerobatic asset fingerprinting since Gatsby already does this
    fingerprintAssets: false

  # Force aggressive 1yr max-age header for all .js and requests
  - name: http-headers
    path: ["/*.js", "/*"]
      "Cache-Control": "public, max-age=31536000"
  - name: webpage

Other resources

edit this page on GitHub