GitXplorerGitXplorer
J

compute-file-server

public
5 stars
1 forks
0 issues

Commits

List of commits on branch main.
Unverified
bcb9c00bd652456f49d89c074ff40c2619df5379

add npm packages and disable auto publishing for now

committed 2 years ago
Verified
328a82727842f85a573d0a2b62981c68e62483be

Update README.md

committed a year ago
Verified
58bdcd4a6234bba5b74502f5f03bcaffabc7ad02

Update index.js

committed a year ago
Verified
36d1569fee3ad940e3af99af96aa94eb4e1cda77

Update .eslintrc.cjs

committed a year ago
Verified
b7c002ae97c6ba55c6aae4dbaff7d403515dedd3

Update main.rs

committed 2 years ago
Verified
8831243ae720949b9ebe528bc14ad092dbb642de

Update index.js

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!