Updated the CMS to have the ability to choose the Banner image

This commit is contained in:
Tiago Ribeiro
2024-03-28 15:10:37 +00:00
parent 2cb916cfbf
commit 42bf8e1191
7 changed files with 879 additions and 188 deletions

View File

@@ -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: "",
},
},
},
};
};