https://github.com/grokify/fastly-compute-quickstart-assemblyscript
https://github.com/grokify/fastly-compute-quickstart-assemblyscript
fastly fastly-compute-at-edge
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/grokify/fastly-compute-quickstart-assemblyscript
- Owner: grokify
- License: mit
- Created: 2022-06-23T20:33:26.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-24T03:18:26.000Z (about 3 years ago)
- Last Synced: 2024-10-12T00:44:47.820Z (9 months ago)
- Topics: fastly, fastly-compute-at-edge
- Language: TypeScript
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fastly Compute@Edge Quickstart for AssemblyScript
Simple quickstart show casing route filtering, synthetic edge responses, and logging.
For more details about other starter kits for Compute@Edge, see the [Fastly developer hub](https://developer.fastly.com/solutions/starters)
## Deploy Button
[](https://deploy.edgecompute.app/deploy)
## Deployment via CLI
```bash
% fastly compute init
% fastly compute publish --service-id= --token=
```## Features
* Allow only requests with particular HTTP methods
* Match request URL path and methods for routing
* Build synthetic responses at the edge## Understanding the code
This starter is intentionally lightweight, and requires no dependencies aside from the [`@fastly/as-compute`](https://www.npmjs.com/package/@fastly/as-compute) npm package. It will help you understand the basics of processing requests at the edge using Fastly. This starter includes implementations of common patterns explained in our [using Compute@Edge](https://developer.fastly.com/learning/compute/assemblyscript/) and [VCL migration](https://developer.fastly.com/learning/compute/migrate/) guides.
The starter doesn't require the use of any backends. Once deployed, you will have a Fastly service running on Compute@Edge that can generate synthetic responses at the edge.
## Security issues
Please see our [SECURITY.md](SECURITY.md) for guidance on reporting security-related issues.