How to use @faasjs/cloud_function - 1 common examples

To help you get started, we’ve selected a few @faasjs/cloud_function examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github faasjs / faasjs / packages / deployer / src / index.ts View on Github external
if (plugin.type === 'cloud_function') {
        includedCloudFunction.push({
          index: i,
          plugin
        });
      }
    }

    // 将云函数插件移到最后
    if (includedCloudFunction.length) {
      for (const plugin of includedCloudFunction) {
        func.plugins.splice(plugin.index, 1);
        func.plugins.push(plugin.plugin);
      }
    } else {
      const functionPlugin = new CloudFunction();
      func.plugins.push(functionPlugin);
    }

    await func.deploy(this.deployData);

    return this.deployData;
  }
}

@faasjs/cloud_function

A FaasJS plugin, let function could create, config and invoke CloudFunction.

MIT
Latest version published 5 days ago

Package Health Score

81 / 100
Full package analysis

Popular @faasjs/cloud_function functions

Similar packages