Implementation of a simple Image CDN using Firebase Hosting, Functions, and Storage
Firebase Image CDN, featuring Kusya the cat 😺
You must have a Firebase account, firebase-tools
installed and logged in. Refer to Firebase documentation for more details.
npm install
firebase init
cd ./functions && npm run build && cd -
firebase serve
Upload images to your Firebase Storage using Console and use the image name (or full key in the bucket) as the source image name for the CDN.
firebase deploy
Please note Firebase Storage rules in this project allow public read of all files in the bucket.