Skip to main content

函数命名规范

一个 Remotion Lambda 函数的命名规则如下:

🌐 A Remotion Lambda function has the following naming convention:

remotion-render-4-0-372-mem2048mb-disk2048mb-240sec
                ^^^^^^^    ^^^^       ^^^^   ^^^
                  |         |          |      |-- Timeout in seconds
                  |         |          |--------- Disk size in MB
                  |         |------------------- Memory size in MB
                  |----------------------------- Remotion version with dots replaced by dashes

当你部署一个函数时,名称是硬编码的。这有两个作用:

🌐 When you deploy a function, the name is hardcoded. This has two functions:

  • 1
    避免不必要地有多个具有相同配置的函数。
  • 2
    能够使用
speculateFunctionName()

来猜测函数名称,这样就不必获取你 AWS 账户中的函数列表。

另请参阅

🌐 See also