Skip to content

chenrui333/fastly-compute-edge-demo

Repository files navigation

fastly-compute-edge-demo

main hurl

The goal for this repo is to showcase the fastly-compute-edge workflow:

build/publish

fastly compute init
fastly compute build
fastly compute pubilsh

add backend

$ fastly backend create --version=latest --name=httpbin --address=httpbin.com --port=443 --autoclone

$ fastly backend list --version=latest
SERVICE                 VERSION  NAME        ADDRESS      PORT  COMMENT
3P8d99kmQc6GK2lpLPvtmk  6        httpbin     httpbin.com  443
3P8d99kmQc6GK2lpLPvtmk  6        originless  127.0.0.1    80

testing

$ curl -s -I  https://fastly-compute-edge-demo.edgecompute.app
HTTP/2 200
content-type: text/html; charset=utf-8
x-served-by: cache-ewr18160-EWR
date: Sun, 27 Mar 2022 05:07:42 GMT

local testing

$ fastly compute serve

$ curl -I http://127.0.0.1:7676/status/500
HTTP/1.1 500 Internal Server Error

references

template repos