检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
fg-test: aliasName: pre versionId: 1 description: test publish version additionalVersionWeight: createdTime:
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
打包函数代码。 将目录中的“.next”、“public”、“package.json”和“bootstrap”打包成zip压缩包,本案例命名为“nextjs-func-code.zip”作为函数代码备用。 父主题: 使用Next.js项目构建HTTP函数
eb服务初始化时间一共超过了5秒钟,那么无疑将会使您网站的用户体验大打折扣,因此设法减少冷启动时间,提高终端用户的使用体验,是您在构建无服务器架构时亟待解决的问题。 Serverless实例的生命周期可以分为三个阶段: 初始化:在此阶段,FunctionGraph会尝试解冻之前的
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
请求参数 表2 请求Body参数 参数 是否必选 参数类型 描述 name 是 String 函数流名称 最小长度:1 最大长度:64 description 否 String 函数流描述 最小长度:1 最大长度:512 start 是 String 流程开始节点ID 最小长度:1 最大长度:256
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
请求参数 表2 请求Body参数 参数 是否必选 参数类型 描述 name 是 String 函数流名称 最小长度:1 最大长度:64 description 否 String 函数流描述 最小长度:1 最大长度:512 start 是 String 流程开始节点ID 最小长度:1 最大长度:256
Framework的开源CLI。 如果已经具备了这些前提条件,则可以跳过部署示例服务。 安装Node.js和NPM 安装Node.js和NPM,下载地址请参考下载说明。 最后,您应该能够从命令行中运行node -v,并获得以下结果: $ node -v vx.x.x 同时,您还能够从命令行中运行npm
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
开启灰度版本,并且支持配置同一个别名下两个不同版本分流权重。 依赖包 依赖包管理模块统一管理用户所有的依赖包,用户可以通过本地上传和obs地址的形式上传依赖包,并为依赖包命名。 函数依赖包生成示例请参考如何制作函数依赖包。 调用链 调用链跟踪、记录业务的调用过程,可视化地还原业务
runtime: Node.js14.18 package: default codeType: zip code: codeUri: ./code 父主题: 部署deploy
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
测试事件。 创建成功后,单击代码编辑区的“测试”,进行父函数调用。 查看执行结果。 父函数的执行结果显示“执行成功”,返回“200”。 图3 父函数执行历史 子函数的日志中,显示被调用的日志。 图4 子函数执行历史 父主题: 应用示例
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted
yaml中所指定的access信息/default 指定本次部署时的密钥信息 可以使用通过config命令配置的密钥信息,以及配置到环境变量的密钥信息 skip-actions - - 跳过yaml所设置的actions模块 - debug - - 开启Debug模式 开启Debug模式后可以查看到更多的工具执行过程信息