By using AWS re:Post, you agree to the Terms of Use

How to setup CloudFront default root object?


I am export a NextJS static web and host it by CloudFormation distribution. However, I always need to type I want to access **without index.html **


When I host the NextJS with Amplify, it also use CloudFront and working without the "index.html"

1 Answers
Accepted Answer

In the CloudFront distribution settings there is a default root object option.

General Tab > Settings section > Edit > scroll down to Default root object and enter index.html here.

profile picture
answered 3 months ago
  • Thank you! I go it done

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions