Giter VIP home page Giter VIP logo

test-fastly-mte's Introduction

Fastly Entrypoint in Rust

Fastly CLI

Make sure that you have the fastly cli installed and configured with the fastly token.

To serve it locally, run

fastly compute serve

or to deploy it, run

fastly compute build
fastly compute deploy

You can remove or update the service_id in fastly.toml if you wish to deploy it to a different C@E service

Unit Tests

The --nocapture flag shows the println!() outputs in the test results.

cargo test -- --nocapture

Url Transformation

The URL transformation rule handles redirects and rewrites defined by the user. These configs are stored in the fastly KV store.

The rules structure has two parts, simple_rules and regexes

A rule is a redirect if it has a permanent field value. Otherwise, it is a rewrite.

Local KV

Inside fastly.toml the local-server block has been modified to include a mock KV that serves redirects from local

Formatting

cargo fmt --all

Logs

Logs are sent to an opensearch collection within the thgvega stack in eu-west-1. They can be viewed via the aws dashboard.

test-fastly-mte's People

Contributors

olingard avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.