1.0.1 • Published 3 years ago

fastly-compute v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Fastly-Compute

fastly-compute is an assemblyscript project that is deployed to Fastly to use their Compute@Edge functionality.

Installation

  1. Need to install the Fastly command line
  1. Run fastly configure to make sure you have the token. Ask Dustin McCraw for non development tokens. In dev you can get the FASTLY_GATSBY_HOSTING_TOKEN from the dev-monolith/local.env
  • fastly configure

Deploy

  1. Build the assembly script files
  • fastly compute build
  1. Deploy the service
  • yarn fastly:deploy:dev
  • yarn fastly:deploy:staging
  • yarn fastly:deploy:prod

Developing

  1. Tail the logs to get any Console.log or exception handling
  • fastly logs tail

Fastly CLI

AssemblyScript

Fastly Compute@Edge used AssemblyScript

AssemblyScript Introduction