1.0.2 โข Published 2 years ago
strapi-provider-upload-local-url v1.0.2
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!