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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Packaging doesn't include index.html?

truongle-teq opened this issue · comments

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

commented

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