message: fix(serverless-next.js): fix resolution of next-aws-cloudfront
diff: @@ -189,10 +189,7 @@ class NextjsComponent extends Component {
  buildManifest
  ),
  copy(
  - join(
  - __dirname,
  - "node_modules/next-aws-cloudfront/next-aws-cloudfront.js"
  - ),
  + require.resolve("next-aws-cloudfront"),
  join(nextConfigPath, DEFAULT_LAMBDA_CODE_DIR, "next-aws-cloudfront.js")
  ),
  copy(
  @@ -216,10 +213,7 @@ class NextjsComponent extends Component {
  join(nextConfigPath, API_LAMBDA_CODE_DIR, "index.js")
  ),
  copy(
  - join(
  - __dirname,
  - "node_modules/next-aws-cloudfront/next-aws-cloudfront.js"
  - ),
  + require.resolve("next-aws-cloudfront"),
  join(nextConfigPath, API_LAMBDA_CODE_DIR, "next-aws-cloudfront.js")
  ),
  copy(
  