Using the above next.js config and npm run build to do a static deploy to the out folder. I’m testing with http-server out. Trying to reach localhost:8080:/test/characters but get a 404. However, localhost:8080/characters works, which seems wrong. I’d expect the page to be reached using localhost:8080:/test/characters.
If I try npm run dev everything works fine, I can reach my page via localhost:3000/test/characters.
Therefore, is output: "export" incompatible with “basePath”? If I remove output: "export" and do an npm run build && npm run start, it also appears to work as expected. Requires a nextjs server however and I want to ultimately use nginx to host a static site.