GitXplorerGitXplorer
J

compute-file-server

public
5 stars
1 forks
0 issues

Commits

List of commits on branch main.
Verified
00d9ec914c7735d3b7f9d7a72e395beaf26a1025

Update package.json

committed 10 months ago
Unverified
d6bcd3db0bf10cc7cd2ec6814416bfd35f43ad49

1.1.0

committed a year ago
Unverified
ae004c906d6e000140c9aa296c03b32367cf70ba

rename

committed a year ago
Unverified
1b2aac392ef3b6b1ed08a783298f170b88f47447

bump

committed 2 years ago
Unverified
ef036916fcfb7bdaac6eb01a6cbf3bcde849419d

fix licenses and add required fields

committed 2 years ago
Unverified
cc8aaa7e5325916d5ac73130ba889efdb3eb3476

add "type": "module"

committed 2 years ago

README

The README file for this repository.

compute-file-server

Compute File Server uploads files to Fastly for serving directly from within Fastly Compute 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.

Serve the files from your Compute application.

Usage

  • You will need to install the CLI application used to upload files to Fastly. cargo install compute-file-server-cli

  • Upload the files compute-file-server upload --name 'my-site' --token "$(fastly profile token)" -- my-folder-of-files/

  • Create your Fastly Compute application. We have examples for Rust and JavaScript.

  • Copy your Fastly Compute service_id from the fastly.toml file

  • Link the files to your Fastly Compute application. compute-file-server link --name my-site --link-name site --service-id "your-service_id" --token "$(fastly profile token)"

  • You are done!