sladg / nextjs-lambda

Lambda deployments for Nextjs12 & Nextjs13 (standalone). Easy CLI commands to get your standalone Next output to run in AWS Lambda (not @Edge)! Uses CDK in behind and produces code zips importable to Terraform, Serverless, Azure, etc.
MIT License
169 stars 19 forks source link

Packaging doesn't include index.html? #84

Closed truongle-teq closed 1 year ago

truongle-teq commented 1 year ago

Hi. I am a beginner to AWS. I am using your CLI to deploy my Next.js app (13) to Lambda. The deployment process was successful and generated multiple URLs, but the S3 bucket the CLI created during packaging doesn't have index.html. My question is: how can I access to my app without index.html via Static website hosting in S3 Bucket settings? @sladg

StandaloneNextjsStack-Temporary.assetsBucketUrl doesn't work.

Screenshot 2023-04-13 at 10 50 11

sladg commented 1 year ago

NextJS is not static, so index.html is non existent. You can access your app via opening cfnDistroUrl