hypernova-lambda

1.0.1 • Public • Published

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

import hypernova from 'hypernova-lambda';
 
const getComponent = (name) => {
  if (name === 'Header') {
    return /* return component to be render here */
  }
  return null;
};
 
export const handler = (event, context, callback) => {
  hypernova(event, { getComponent }, callback);
};
 

Readme

Keywords

Package Sidebar

Install

npm i hypernova-lambda

Weekly Downloads

25

Version

1.0.1

License

MIT

Unpacked Size

3.82 kB

Total Files

8

Last publish

Collaborators

  • marconi1992