Next.js Discord

Discord Forum

404 on index route but not on subroute

Unanswered
English Angora posted this in #help-forum
Open in Discord
English AngoraOP
Hey guys, I'm working on a project for a client and am using AWS Beanstalk to host my NextJS app with AWS Cloudfront. On deployment, it seems like the / path gives a 404 error while a /test page renders completely fine. I'm wondering if anyone had stumbled upon a similar situation before? Many thanks!

1 Reply

English AngoraOP
To anyone having the same issue. Check your CloudFront configuration and make sure “Default Root Object” is not set.