Skip to content

Repository files navigation

Hypernova Lambda

Implementation of Hypernova for AWS Lambda

Differences of Hypernova Server

Hypernova Lambda uses Amazon API Gateway instead of express as HTTP Server and the Server Side Rendering will be perform by the Lambda Function.

Options for Hypernova Lambda

The only supported option for Hypernova Lambda is getComponent and processJobsConcurrently is true by default so all the job will be proccessed concurrently.

{getComponet: undefined}

Installation

npm install --save hypernova-lambda hypernova

Example

importhypernovafrom'hypernova-lambda';constgetComponent=(name)=>{if(name==='Header'){return/* return component to be render here */}returnnull;};exportconsthandler=(event,context,callback)=>{hypernova(event,{ getComponent },callback);};

About

Implementation of Hypernova for AWS Lambda

Topics

Resources

Stars

9 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages