Skip to content

Commit

Permalink
doc: added a tips for appid in cloud storage (#1573)
Browse files Browse the repository at this point in the history
  • Loading branch information
nightwhite authored Oct 11, 2023
1 parent d40a6ad commit c8f8ccc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/guide/oss/oss-by-function.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ await s3Client.putObject({
- application/octet-stream:二进制流文件
- 等等

:::tip
当前应用的 appid 可用 `cloud.appid``process.env.APPID` 获取
:::

## 删除云存储对象

可删除云存储文件或者文件夹
Expand Down Expand Up @@ -375,7 +379,7 @@ const bucketName = 'bucketName' // 不带 Laf 应用 appid

//拼接文件桶名字
function getInternalBucketName() {
const appid = process.env.APP_ID;
const appid = process.env.APPID;
return `${appid}-${bucketName}`;
}

Expand Down

0 comments on commit c8f8ccc

Please sign in to comment.