Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
revmischa committed Oct 10, 2022
1 parent fb5073f commit d5d341b
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 14 deletions.
31 changes: 23 additions & 8 deletions API.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Deploy NextJS with CDK

[![View on Construct Hub](https://constructs.dev/badge?package=cdk-nextjs-standalone)](https://constructs.dev/packages/cdk-nextjs-standalone)

## What is this?

A CDK construct to deploy a NextJS 12.3.0+ app using AWS CDK.
Expand Down
4 changes: 2 additions & 2 deletions src/Nextjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
NextjsBaseProps,
} from './NextjsBase';
import { NextjsBuild } from './NextjsBuild';
import { NextJsLambda, NextjsLambdaFunctionProps } from './NextjsLambda';
import { NextJsLambda, NextjsLambdaProps } from './NextjsLambda';

// contains server-side resolved environment vars in config bucket
// const CONFIG_ENV_JSON_PATH = 'next-env.json';
Expand Down Expand Up @@ -62,7 +62,7 @@ export interface NextjsCdkProps {
/**
* Override server lambda function settings.
*/
readonly lambda?: NextjsLambdaFunctionProps;
readonly lambda?: NextjsLambdaProps;
}

export interface NextjsProps extends NextjsBaseProps {
Expand Down
4 changes: 0 additions & 4 deletions src/NextjsLambda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ import { NextjsLayer } from './NextjsLayer';

export type EnvironmentVars = Record<string, string>;

export interface NextjsLambdaFunctionProps extends Function {
readonly handler?: string;
}

export interface NextjsLambdaProps extends NextjsBaseProps {
/**
* Built nextJS application.
Expand Down

0 comments on commit d5d341b

Please sign in to comment.