Docs
Function Settings

When creating a function or accessing the settings tab, you will see several configuration options:

Name

Enter a name for your function. The name must be unique within the project.

Description

Markdown description of the function. This is mainly used for the landing page of public functions.

Language

Select the programming language for your function. Currently supported languages are Python and JavaScript.

Image

Choose the runtime image for your function:

  • Python: python:3.12.1-slim
  • Node.js: node:20.13.1-slim

Concurrency

Select the concurrency mode for your function:

  • Sync: The function returns a result immediately. The timeout for a sync function is 6 seconds.
  • Async: The call returns a 200 response immediately and the function runs in the background. The timeout for an async function is 15 seconds.

Private or Public

Make your function public to share it with others. Public functions get a landing page url where someone can view, run, and copy the function. Making a function public does not expose environment variables or secrets.

Private functions are not visible to anyone but you, but the url to run the function is still publicly exposed.

Environment Variables

Add environment variables required by your function:

  • Click the "+" button to add a new environment variable.
  • Enter the name and value for the environment variable.

You can access these environment variables in your function code using the os.environ dictionary in Python or process.env in Node.js.

Packages

Add any packages your function requires:

  • Click the "+" button to add a new package.
  • Enter the package name. The latest version will be selected by default.
  • To specify a version, click the "Set Version" link and enter the desired version.

When selecting packages you will see that an image gets built before you can run the function