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