Updated the CMS to have the ability to choose the Banner image
This commit is contained in:
@@ -1 +1,25 @@
|
||||
module.exports = () => ({});
|
||||
module.exports = ({ env }) => {
|
||||
const serviceAccount = JSON.parse(atob(env("GCS_SERVICE_ACCOUNT")));
|
||||
|
||||
return {
|
||||
upload: {
|
||||
config: {
|
||||
provider:
|
||||
"@strapi-community/strapi-provider-upload-google-cloud-storage",
|
||||
providerOptions: {
|
||||
bucketName: env("GCS_BUCKET_NAME"),
|
||||
publicFiles: true,
|
||||
uniform: false,
|
||||
gzip: true,
|
||||
serviceAccount: {
|
||||
...serviceAccount,
|
||||
private_key: serviceAccount.private_key
|
||||
.split(String.raw`\n`)
|
||||
.join("\n"),
|
||||
},
|
||||
basePath: "",
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user