Skip to content
This repository has been archived by the owner on Mar 5, 2021. It is now read-only.

Known issue: Serverless staging path rewrites messing with links #5

Open
Vadorequest opened this issue Mar 5, 2018 · 1 comment
Open
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@Vadorequest
Copy link
Owner

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
@Vadorequest Vadorequest added bug Something isn't working help wanted Extra attention is needed labels Mar 5, 2018
@Vadorequest Vadorequest mentioned this issue Mar 5, 2018
Closed
@Vadorequest Vadorequest reopened this Mar 9, 2018
@Vadorequest
Copy link
Owner Author

A solution that doesn't rely on Custom Domain would be interesting and useful when doing tests against AWS without providing a custom domain (which isn't trivial to do, since it requires to own a domain)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant