@hattip/adapter-netlify-edge
TypeScript icon, indicating that this package has built-in type declarations

0.0.49 • Public • Published

@hattip/adapter-netlify-edge

Hattip adapter for Netlify Edge Functions.

Usage

Assuming you have your Hattip handler defined in handler.js, create an entry file like the following and use @hattip/bundler-netlify or your favorite bundler to bundle it:

import netlifyEdgeAdapter from "@hattip/adapter-netlify-edge";
import handler from "./handler.js";

export default netlifyEdgeAdapter(handler);

context.platform

interface NetlifyEdgePlatformInfo {
  /** Platform name */
  name: "netlify-edge";
  /** Netlify-specific context object */
  context: NetlifyContext;
}

See Netlify's documentation for the Netlify-specific context object.

Readme

Keywords

none

Package Sidebar

Install

npm i @hattip/adapter-netlify-edge

Weekly Downloads

59

Version

0.0.49

License

MIT

Unpacked Size

5.92 kB

Total Files

5

Last publish

Collaborators

  • brillout
  • cyco130