Skip to content

Commit

Permalink
Merge pull request #205 from devsapp/use-oss
Browse files Browse the repository at this point in the history
feat: deploy fc use oss bucket
  • Loading branch information
rsonghuster authored Jul 12, 2023
2 parents 1541fcf + eece1a5 commit 8ae01ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Component
Name: fc-deploy
Provider:
- 阿里云
Version: 0.0.118
Version: 0.0.119
Description: 阿里云函数计算基础组件
HomePage: https://github.com/devsapp/fc-base
Tags:
Expand Down
4 changes: 2 additions & 2 deletions src/lib/component/fc-base-sdk/command/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ export default class Component {
if (!onlyDeployConfig) {
if (filename) {
const needUseWithoutCodeLimit = functionConfig.withoutCodeLimit || fs.statSync(filename).size > useBaseUploadCodeSize || useFcBackend;
if (needUseWithoutCodeLimit) {
functionConfig.withoutCodeLimit = needUseWithoutCodeLimit;
if (needUseWithoutCodeLimit || !!process.env.FC_DEPLOY_CODE_USE_OSS_CONFIG) {
functionConfig.withoutCodeLimit = true;
functionConfig.code = {
zipFile: filename,
};
Expand Down

0 comments on commit 8ae01ff

Please sign in to comment.