This repository was archived by the owner on Mar 5, 2021. It is now read-only.

Description
On AWS, I can't get Next.js to work correctly because of the Serverless staging
path rewrite:
The main page (https://11lwiykejg.execute-api.us-east-1.amazonaws.com/development/
) works fine, but:
- when clicking on a "Page 2" link, it goes to the wrong URL:
https://11lwiykejg.execute-api.us-east-1.amazonaws.com/page2
, it's missing the /development
part and the browser will display {"message":"Forbidden"}
- Current workaround: I used a custom domain, it fixes the missing
development
part (by removing the staging
part of the url entirely, which fixes the issue):
- https://swn.dev.vadorequest.fr
- https://swn.dev.vadorequest.fr/page2