Skip to content

ara-framework/hypernova-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

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);
};

Releases

No releases published

Packages

No packages published