fastly-compute
v1.0.1
Published
Gatsby Hosting
Downloads
5
Readme
Fastly-Compute
fastly-compute is an assemblyscript project that is deployed to Fastly to use their Compute@Edge functionality.
Installation
- Need to install the Fastly command line
brew install fastly/tap/fastly
- alternate os install instructions
- 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
- Build the assembly script files
fastly compute build
- Deploy the service
yarn fastly:deploy:dev
yarn fastly:deploy:staging
yarn fastly:deploy:prod
Developing
- Tail the logs to get any Console.log or exception handling
fastly logs tail
Fastly CLI
AssemblyScript
Fastly Compute@Edge used AssemblyScript