includeBytes

Functionin experimental@fastly/js-compute 4.0.0View source
includeBytes(path: string): Uint8Array<ArrayBuffer>

Embed a file as a Uint8Array.

Note: Can only be used during build-time initialization, not when processing requests.

Parameters

path: string

The path to include, relative to the project's top-level directory.

Returns