Deploy to Bunny CDN

What is needed: Simply Static Pro

Simply Static allows you to export your static website to BunnyCDN, which is one of the easiest ways to get your static website online.

BunnyCDN

BunnyCDN is quite a popular choice for a CDN as it combines fair pricing with incredibly good performance and 99.99% availability worldwide.

It serves your website for a fraction of the costs of a traditional web host and provides also better performance and a lot more security due to the static deployment with Simply Static.

Configuration

You can create a free account at bunny.net. Once you have on, go to “Account Details” to grab your API key:

Get API Key from Bunny CDN

Storage

Before we head back to the Simply Static settings, let’s move to “Storage” and create a storage zone where we can upload our static files:

Create a Storage Zone in Bunny CDN to upload static files

You will be redirected to the setup page for the storage zone.

There are only three things that are important and need to be configured:

  • Storage Zone Name (the name of your website without TLD)
  • Storage Tier (you want to use Standard)
  • Main Storage Region (the region closest to your location

Set up Storage Zone settings in Bunny CDN

Scroll down the page and click on Add Storage Zone.

CDN

Before we get deeper into the storage zone settings, let's move to CDN.

You can set up Pull Zones, which are where you can set up things like custom domains, SSL, and caching.

Set up Pull Zones in Bunny CDN

Once you click on Add Your First Pull Zone you will be redirected to the setup page.

There are a few settings that are important:

  • Pull Zone Name (the name of your project, can be the same as the storage zone)
  • Origin Type (Choose Storage Zone and select your created storage zone from the list)
  • Choose Tier (Keep it Standard)
  • Pricing Zones (that's optional, but you can decide where to replicate your website)

Pull Zone settings

Now, move back to the storage zone to get the Access Key and Hostname.

Access Key and Storage Zone

Move to Storage and select the newly created storage zone. Within the details view, go to FTP & API Access, and you should see something like this:

Get access key and password from Bunny CDN

You need to copy the Hostname and the Password.

Ensure you copy the Password and NOT Read-only Password.

Setup in Simply Static

Now we have everything set up in BunnyCDN, and we can move back to Simply Static.

Head over to Simply Static -> Settings -> Deploy-> BunnyCDN and fill out the details:

Bunny CDN deployment settings in Simply Static

Bunny CDN API Key:

This is BunnyCDN's general API key. You can get it from your BunnyCDN account area.

Storage Host

This is the Hostname you have copied from Storage -> Storage Zone -> FTP & API Access -> Hostname.

Bunny CDN Access Key

This is the Password you have copied from Storage -> Storage Zone -> FTP & API Access -> Password.

Pull Zone

This is the Pull Zone Name. You can find it within your account under CDN.

Ensure you don't copy the full URL, just the name.

Bunny CDN Pull Zone name

Storage Zone

This is the Storage Zone Name. You can find it within your account under Storage.

Ensure you don't copy the full URL, just the name.

Bunny CDN Storage Zone Name

Directory:

This is optional. If you like to store your website in a subdirectory, add it here.

You don't need to add any slashes, just the directory's name.

Video Tutorial

Adding a Sitemap

You can use a plugin such as Rankmath or Yoast SEO to setup and add a sitemap to your WordPress website. You can then add the sitemap directly to your WordPress site or include it in your static export using the Include option in Simply Static.

If you are experiencing an issue accessing your XML sitemap on your static site, you may need to add a rule for the main domain to the edge server for Bunny CDN and any proxy you are using such as Cloudflare.