Extension for directus CMS using vue3 for the bunny.net Image CDN
- Download or fork the repository
- Install the requirements
npm install
- Copy .env.example to .env and replace variables with yours. (You can follow that documentation)[https://docs.bunny.net/reference/put_-storagezonename-path-filename].
- CDN_API_URL is the url that you need to use for upload the images, composed by: https:///
- CDN_API_KEY is your storage password
- CDN_API_GET_URL is your CDN url that is used to read your iamges
- CDN_API_GET_URL and CDN_API_URL are differents
- Build the extension
npm run build
- Create a folder in your directus extension/interface folder named bunny-upload or an alternate route name.
- Move the index.js build file to your new folder directus/extensions/interface/bunny-upload/index.js
- Restart directus !