Giter Site home page Giter Site logo

test's Introduction

Edge Functions Examples

https://edgio-community-examples-v7-edge-functions-live.edgio.link/

Description

This repository provides example code for implementing the most common use cases on Edge Functions. It features examples of how to add headers to a request, change response bodies before returning them to the client, create HTML pages from scratch to return as a response, manipulate video player manifests, and generate JSON from scratch.

Prerequisites

NOTE: To use this project, you must be an Edgio customer and signed up for the Edge Functions. See our Edge Functions documentation for information on activating this feature.

The system requirements include Node.js v16 or higher, and a UNIX-like system (Linux or macOS). The project code is written in JavaScript.

Setup and Installation

  1. Ensure you meet the prerequisites.
  2. Clone the repository to your local machine.
  3. Run npm install in the repository directory.

Getting Started

After setting up the project, run npm run edgio:dev to start a local development server to test the example functions.

To deploy the project to Edgio, use the command npm run edgio:deploy. Note that deployment to Edgio requires you to be logged into Edgio CLI which can be done via npm run edgio login and following the instructions.

Known Issues and Limitations

Currently

  • We only support JavaScript-based code
  • Each request has a 60-second (wall time) timeout limit
  • Each request is limited to 50ms of CPU time
  • Each request is limited to 2MB of memory
  • An Edgio Function can make fetch requests only to origins defined in your property configuration file (edgio.config.js).

We're looking forward to feedback from our customers about these limitations and how we can improve the product.

Support

If you have any queries or face issues with this project, please don't hesitate to contact the Edgio team.

License

Creative Commons Attribution 4.0 International Public License for the documentation.

MIT License for the code.

test's People

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.