We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Amazon API Gateways have a stage in their URLs:
E.g. https://vbe6aad5c.execute-api.us-east-1.amazonaws.com/prod/home
This breaks next8 serverless page deployments routing because there doesn't seem to be a way to configure nextjs with a basePath (/prod in this case).
I would like to be able to configure nextjs with a uri basePath which works with next's routing.
basePath
Could be something like:
next.config.js
module.exports = { uriBasePath: '/prod' }
Note assetPrefix doesn't work here because it applies only to static files AFAIK.
assetPrefix
Using a custom domain for the AWS API GW would solve the problem as it removes the /{stage} from the URL.
The text was updated successfully, but these errors were encountered:
Duplicate of #4998
Sorry, something went wrong.
No branches or pull requests
Feature request
Is your feature request related to a problem? Please describe.
Amazon API Gateways have a stage in their URLs:
E.g. https://vbe6aad5c.execute-api.us-east-1.amazonaws.com/prod/home
This breaks next8 serverless page deployments routing because there doesn't seem to be a way to configure nextjs with a basePath (/prod in this case).
Describe the solution you'd like
I would like to be able to configure nextjs with a uri
basePath
which works with next's routing.Could be something like:
next.config.js
Note
assetPrefix
doesn't work here because it applies only to static files AFAIK.Describe alternatives you've considered
Using a custom domain for the AWS API GW would solve the problem as it removes the /{stage} from the URL.
The text was updated successfully, but these errors were encountered: