Skip to content

Latest commit

 

History

History

adapter-lagon

@hattip/adapter-lagon

Hattip adapter for Lagon.

Usage

Assuming you have your Hattip handler defined in handler.js, create an entry-lagon.js file like the following and use lagon dev entry-lagon.js to run it locally:

import lagonAdapter from "@hattip/adapter-lagon";
import hattipHandler from "./handler.js";

export const handler = lagonAdapter(hattipHandler);

The lagon command is provided by the @lagon/cli package. Lagon CLI takes care of the bundling, so you don't need a separate bundling step.

Limitations

Lagon support is preliminary as Lagon itself is in early development.