c-at-e-file-server
Fastly File Server uploads files to Fastly for serving directly from within Compute@Edge applications.
Upload any type of file: images, text, video etc and serve directly from Fastly.
It is ideal for serving files built from a static site generator such as 11ty.
Install
npm
Install pre-compiled binaries via npm
Cargo
Compile and install via cargo
Commands
Upload
Upload files to a Fastly Object Store, creating the Object Store if it does not exist.
Example: c-at-e-file-server upload --name website-static-files -- ./folder/of/files
<PATH>
Link
Connect a Fastly Object Store to a Fastly Service.
Example: c-at-e-file-server link --name website-static-files --link-name files --service-id xxyyzz
Local
Update fastly.toml
to contain a local Object Store containing the specified files.
Example: c-at-e-file-server local --name files --toml fastly.toml -- ./folder/of/files
<PATH>