We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
historyApiFallback.index
deployUrl
1 parent 0de9cb6 commit 39a191aCopy full SHA for 39a191a
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