Simply Static allows exporting your static website to BunnyCDN without using GitHub. This is one of the easiest ways to get your static website online.
Table of Contents
BunnyCDN is quite a popular choice for a CDN as it combines fair pricing with incredibly good performance and 99.99% availability across the entire globe. 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.
You can create a free account at bunny.net. Once you have on, go to “Account Details” to grab your API key:
Before we head back to the Simply Static settings, let’s move to “Storage Zones” and create one:
This will take a short moment, but once it’s finished we click on “Connected Pull Zones”, add a name for the new pull zone and save the settings.
Copy the Access Key
The last bit of information we need is the Access Key. Go to your storage zone and click on “FTP & API access”. You will find two passwords here “Password” and “Read-only Password”, make sure you get the value from “Password”:
Now we have everything set up in BunnyCDN and we can move back to Simply Static. Head over to Simply Static -> Settings -> Deployment-> BunnyCDN and fill out the details:
For now, there is only BunnyCDN available. However, this may change in the future, so make sure you selected “BunnyCDN”.
CDN API Key:
This is the general API key from BunnyCDN. You can get this from the account area of your BunnyCDN account.
Depending on your geographical location, the storage host may differ from what you can see on the screenshot. You can quickly find out the correct storage zone in the BunnyAPI docs here: https://docs.bunny.net/reference/get_-storagezonename-path-filename
You will find the correct storage host in the example at the top:
CDN Access Key
That’s the “Password” value you copied from your storage zone -> FTP & API access. The Access key is required to upload and modify files in your BunnyCDN storage zone.
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 name of the directory.
If you have created a custom 404 error page in WordPress you can add the relative path to it here. Simply Static will automatically transform it to a readable file for BunnyCDN and configure the settings accordingly.
Once you filled out all the details, save the settings and we are ready to move on.
The last step is to change the delivery method in Simply Static -> Settings -> General to “CDN”:
That’s it. Now as soon as you run a new static export, Simply Static will push the files to BunnyCDN automatically.