Angular V17 now use the application builder by default (ref) even if we don't use SSR. This results in the output files, including index.html, be placed in ${outputPath}/browser instead of ${outputPath}, which breaks the deployment of angular-cli-ghpages.
I propose two potential solutions:
-
Add a deployment options to specify a relative path to outputPath. e.g. ng deploy --path=/browser, which publishes folder ${outputPath}/browser.
-
If build.builder in angular.json is set to "@angular-devkit/build-angular:application", then publishes folder ${outputPath}/browser.
Angular V17 now use the
applicationbuilder by default (ref) even if we don't use SSR. This results in the output files, includingindex.html, be placed in${outputPath}/browserinstead of${outputPath}, which breaks the deployment ofangular-cli-ghpages.I propose two potential solutions:
Add a deployment options to specify a relative path to
outputPath. e.g.ng deploy --path=/browser, which publishes folder${outputPath}/browser.If
build.builderinangular.jsonis set to "@angular-devkit/build-angular:application", then publishes folder${outputPath}/browser.