Skip to main content

Bunny CDN

Difficulty - Easy, Cost - $1/month

Words you might see in this guide

TermMeaning
Storage zoneThe place in Bunny where your files live. You upload the contents of your .faircamp_build folder here.
Pull zoneThe setting that turns your storage into a public link. Once you create a pull zone, your archive is available at a URL like yoursite.b-cdn.net.
CDNContent delivery network, servers that store copies of your site and serve them from locations close to visitors so the site loads faster.
PurgeClearing the CDN’s cached copies so the next visitor gets your latest files. You’ll use this when you update your archive.
Force SSLMakes your archive load only over HTTPS (the locked padlock). You’ll turn this on so your link is secure.

1. Create a Bunny CDN Account

Make an account on bunny CDN

Make an account

2. Welcome to Bunny CDN

Welcome to BunnyCDN

3. Set up storage

Click on Storage and Add Storage Zone

Title your storage zone something memorable, and go through the creation dialog

After creating the storage zone, you will be presented with this file explorer

Make an account

4. Upload your faircamp archive

Using the upload file and upload folder buttons, upload the content of your faircamp archive build folder.

tip

If you want to do this faster, you can use the bunnyCDN CLI. However, this tool is unofficial and the tutorial will not cover using it

Upload all of the contents into the top level of your new storage space

5. Add a pull zone

After uploading your archive content, you will need to add a pull zone ( CDN ). This will enable your content to be accessible via a link.

Add a new pull zone

When you create your pull zone, you will give it a name. This name will show up in the link that is later created for your archive.

example: https://incognitothief-faircamp.b-cdn.net

Name your pull zone something memorable and continue with the setup dialog

You can deselect some of the pricing zones to make your deployment cheaper (However, bunny CDN requires that you pay a minumum of $1 per month)

Once you have completed, you will see this screen. The Linked Hostnames section displays the link that your faircamp archive is accessible at

Be sure to enable Force SSL

Finished

Try typing the link into the search bar. You should be able to access your archive!

tip

Your archive is now available at [PULL-ZONE-NAME].b-cdn.net ! Keep this link handy; You will submit it on the publish page

Tips and Tricks

Refreshing your archive after making changes

Whenever you want to deploy changes to your faircamp archive, follow these steps:

  1. Delete the contents of your BunnyCDN storage
  2. Upload the new contents of your .faircamp_build folder ( Repeat step 4 ) to BunnyCDN
  3. Purge your CDN

Press purge to purge the cache and load the latest archive contents

Why does this work?

A CDN is like a network of local warehouses for web content; instead of shipping everything from one central location, data is delivered from the closest “warehouse” to you, making websites load faster.

When you "Purge" your CDN, you get rid of all the old contents of your "warehouse" and stock it up with fresh contents