@plstr/nextjs-cdk
    TypeScript icon, indicating that this package has built-in type declarations

    1.5.0 • Public • Published

    NextJS CDK

    codecov Build semantic-release

    A zero configuration Next.js 11/12 build and CDK component for AWS Lambda@Edge and AWS Lambda with API Gateway aiming for full feature parity.

    Most of the code originates from serverless-nextjs which this component will try to keep even steps with.

    Install

    Just run yarn install. Dependencies that are used by the sharp image component are purposely checked in since they are copied along side the image handler.

    Tests

    To be able to fully run the tests the handler code that will be run inside the default and image lambdas have to be bundled using Rollup. That is why this has been added as a pretest script.

    Architecture

    architecture

    Three Cache Behaviors are created in CloudFront.

    The /* is associated to a API Gateway (REST API) which routes the request either to the default or image lambda.

    There will also be a Lambda@edge configuration version of this as well that can be used outside of China.

    Keywords

    none

    Install

    npm i @plstr/nextjs-cdk

    DownloadsWeekly Downloads

    227

    Version

    1.5.0

    License

    MIT

    Unpacked Size

    31.1 MB

    Total Files

    846

    Last publish

    Collaborators

    • sebastian.bille.polestar
    • andqui