config/plugins.js (23 lines of code) (raw):
module.exports = ({ env }) => {
if (env('NODE_ENV') === 'production') {
return {
upload: {
config: {
provider: '@strapi-community/strapi-provider-upload-google-cloud-storage',
providerOptions: {
bucketName: env('BUCKET_NAME'),
publicFiles: true,
uniform: false,
basePath: '',
},
},
}
}
} else {
return ({
seo: {
enabled: true,
},
})
}
}