1.0.2 โ€ข Published 2 years ago

strapi-provider-upload-local-url v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

strapi-provider-upload-local-url

๐Ÿš€ ย  Overview and Motivation

This provider reflects the strapi-provider-upload-local but with an additional option to set the baseurl on upload url data as prefix.

Generally the provider-upload-local is used for development purposes and other providers already implements the baseurl of the provided solution, this provider just prevents refactoring when changes from development environment to staging/production environments.


๐Ÿ’ป ย  Example.

config/plugins.js

module.exports = ({ env }) => {
  return ({
    upload: {
      provider: 'local-url',
      providerOptions: {
        baseurl: "http://localhost:1337"
      },
    },
  })
};

๐ŸŽ‰ ย  Congradulations, You're done.

I hope this plugin helps you in your strapi projects and save a lot of time and code.


๐Ÿ“œ ย  License

This project is under the MIT license. See the LICENSE for details.


๐Ÿ’ป ย  Developed by Andrรฉ Ciornavei - Get in touch!