Skip to main content

Bunny CDN

Difficulty - Easy, Cost - $1/month

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 site

Using the upload file and upload folder buttons, upload the content of your faircamp site 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 site 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 website.

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 library 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 library!

tip

Your site is now available at [PULL-ZONE-NAME].b-cdn.net ! Keep this link handy; You will submit it on your library profile page

Tips and Tricks

Refreshing your site after making changes

Whenever you want to deploy changes to your faircamp site, 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 site 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