Implementation of Hypernova for AWS Lambda
Hypernova Lambda uses Amazon API Gateway instead of express as HTTP Server and the Server Side Rendering will be perform by the Lambda Function.
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
}npm install --save hypernova-lambda hypernovaimport 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);
};