-
Notifications
You must be signed in to change notification settings - Fork 68
Open
Description
When configuring a custom domain for a repository, the basePath for a Next.js app should not include the name of the repo as the root of the website is just /.
Steps to reproduce
- Configure a custom URL for a repo in
Settings > Pages > Custom Domain - Deploy the next-app using
actions/configure-pages@v3 - See that none of the resources (like CSS or JS) can be loaded as the
basePathis set toreponame
Workaround
To still keep the "disable image optimisation"-option, I forked this action and removed the basePath config, but that is not optimal.
Suggestion
- Make the
basePathconfigurable and when nothing is configured, it's using thereponame, but a user could overwrite it with/if they want to - Update the comment in the provided workflow (
nextjs.yml) to make sure that user know that this can be done (but I guess this is not the scope of this repo, pease let me know where this should be fixed)
rmariuzzo, tyliec, huydang-teq and cobyism
Metadata
Metadata
Assignees
Labels
No labels