Skip to content

Files

Latest commit

a6deab6 · Apr 11, 2023

History

History
28 lines (18 loc) · 1.07 KB

faastjs.commonoptions.include.md

File metadata and controls

28 lines (18 loc) · 1.07 KB
id title hide_title
faastjs.commonoptions.include
CommonOptions.include property
true

faastjs > CommonOptions > include

CommonOptions.include property

Include files to make available in the remote function. See IncludeOption.

Signature:

include?: (string | IncludeOption)[];

Remarks

Each include entry is a directory or glob pattern. Paths can be specified as relative or absolute paths. Relative paths are resolved relative to the current working directory, or relative to the cwd option.

If the include entry is a directory "foo/bar", the directory "./foo/bar" will be available in the cloud function. Directories are recursively added.

Glob patterns use the syntax of node glob.

Also see CommonOptions.exclude for file exclusions.