doramatadora / fastly-compute-starter-kit

This is an optimizely starter kit for fastly edge workers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Default Optimizely Starter Kit

This is the default optimizely starter kit for fastly edge workers. This template provides an npm package with starter code and required dependencies.

How to use

  1. Create a new folder and initialize a fastly compute service using fastly cli from this template.

    fastly compute init --from https://github.com/optimizely/fastly-compute-starter-kit
    
  2. Follow the wizard and provide name, description and other information.

  3. If you want to use an existing fastly service, add your service_id to fastly.toml.

  4. Update your optimizely sdkKey and flagKey in src/index.js.

  5. To build and publish.

    fastly compute publish
    
  6. To see logs.

    fastly logs tail
    

About

This is an optimizely starter kit for fastly edge workers


Languages

Language:JavaScript 100.0%