From bfb38ae7967c5bda77f6f1c96bd009580b5ba70b Mon Sep 17 00:00:00 2001 From: brian Date: Fri, 19 Jul 2024 22:34:16 +0800 Subject: [PATCH] chore: update README.md & remove maximum node version limit Update Tencent Cloud Storage provider configuration about the name of env & remove the maximum node version limit in the package.json fix #5 --- README.md | 24 ++++++++++++------------ package.json | 4 ++-- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index f24e8d4..45213dd 100644 --- a/README.md +++ b/README.md @@ -50,10 +50,10 @@ module.exports = ({ env }) => ({ config: { provider: "strapi-provider-upload-tencent-cloud-storage", providerOptions: { - SecretId: env("COS_SecretId"), - SecretKey: env("COS_SecretKey"), - Region: env("COS_Region"), - Bucket: env("COS_Bucket"), + SecretId: env("COS_SECRET_ID"), + SecretKey: env("COS_SECRET_KEY"), + Region: env("COS_REGION"), + Bucket: env("COS_BUCKET"), }, }, }, @@ -78,10 +78,10 @@ module.exports = ({ env }) => ({ config: { provider: "strapi-provider-upload-tencent-cloud-storage", providerOptions: { - SecretId: env("COS_SecretId"), - SecretKey: env("COS_SecretKey"), - Region: env("COS_Region"), - Bucket: env("COS_Bucket"), + SecretId: env("COS_SECRET_ID"), + SecretKey: env("COS_SECRET_KEY"), + Region: env("COS_REGION"), + Bucket: env("COS_BUCKET"), ACL: "private", // <= set ACL to private }, }, @@ -141,10 +141,10 @@ module.exports = ({ env }) => ({ provider: "strapi-provider-upload-tencent-cloud-storage", providerOptions: { CDNDomain: "example-cdn-domain.com", // <= CDN Accelerated Domain - SecretId: env("COS_SecretId"), - SecretKey: env("COS_SecretKey"), - Region: env("COS_Region"), - Bucket: env("COS_Bucket"), + SecretId: env("COS_SECRET_ID"), + SecretKey: env("COS_SECRET_KEY"), + Region: env("COS_REGION"), + Bucket: env("COS_BUCKET"), }, }, }, diff --git a/package.json b/package.json index b297ff0..40d98be 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "strapi-provider-upload-tencent-cloud-storage", - "version": "1.1.3", + "version": "1.1.4", "description": "A integration of Tencent Cloud COS as a file storage solution within Strapi.", "main": "dist/index.js", "directories": { @@ -54,7 +54,7 @@ "@strapi/strapi": ">=4.0.0" }, "engines": { - "node": ">=14.19.1 <=19.x.x", + "node": ">=14.19.1", "npm": ">=6.0.0" }, "publishConfig": {