Prepend image urls with CDN Prefix on both Admin Panel and API's
This Strapi plugin allows you to automatically prepend a CDN link to your image URLs on both Admin Panel and API's.
# NPM npm install strapi-plugin-cdn-prefix # Yarn yarn add strapi-plugin-cdn-prefix
For the plugin to work correctly, you need to add specific environment variables to your Strapi project. Add the following to your
# .env CDN_DOMAIN = cdn.example.com CDN_IMAGES_BASE_PATH = https://cdn.example.com/images/uploads
Once the plugin is installed and configured:
For example, if the image's path is /uploads/image.jpg, the output will be https://cdn.example.com/images/uploads/image.jpg.
npm install strapi-plugin-cdn-prefix
Check out the available plugin resources that will help you to develop your plugin or provider and get it listed on the marketplace.