Example Next.js app based on App Playground with various configurations to showcase features of cdk-nextjs.
- Follow setup steps in parent README Contributing section
- Install dependencies:
cd examples && pnpm i cd cloudfront-lambdafor example. Tryout any of the other examples as well.- Create .env with
AWS_PROFILE="your-profile"in each package you want to deploy. For setting upAWS_PROFILE, see: AWS security credentials. See more at: How to specify environments with the AWS CDK. - Within package, run:
pnpm run deploy
The app-playground app comes from https://github.com/vercel/app-playground. In order to incorporate upstream changes, follow instructions here. Don't want to use git submodule because we need to make some modifications to code like registering cdk-nextjs's adapter via adapterPath and including in pnpm monorepo.
bench-app is the app the load tests deploy. Unlike app-playground it calls nothing outside its own stack, so the load tests measure cdk-nextjs rather than a third-party API. Keep it that way when changing it.