We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ng serve
historyApiFallback.index
deployUrl
1 parent 0de9cb6 commit 0efc7e8Copy full SHA for 0efc7e8
packages/@angular/cli/tasks/serve.ts
@@ -177,6 +177,8 @@ export default Task.extend({
177
// set publicPath property to be sent on webpack server config
178
if (serveTaskOptions.deployUrl) {
179
webpackDevServerConfiguration.publicPath = serveTaskOptions.deployUrl;
180
+ (webpackDevServerConfiguration.historyApiFallback as any).index =
181
+ serveTaskOptions.deployUrl + `/${appConfig.index}`;
182
}
183
184
if (serveTaskOptions.target === 'production') {
0 commit comments