opennextjs / opennextjs-aws

Open-source Next.js adapter for AWS
https://opennext.js.org
MIT License
4.14k stars 126 forks source link

problem with Next.js basePath #508

Closed eschaefer closed 2 months ago

eschaefer commented 2 months ago

The problem is related to https://github.com/sst/open-next/issues/476.

The main index page on a basePath works fine, thanks to the resolution of #476.

However that fix only works if there are no other paths other than an index path, such as cloudfront.net/basePath/index

If setting up a project to have paths like:

Then all of those routes will return a 404, even the index path.

eschaefer commented 2 months ago

Closing since this resolved with 3.1.2 it seems!