diff --git a/packages/angular-cli/commands/github-pages-deploy.ts b/packages/angular-cli/commands/github-pages-deploy.ts index eb4f806e4f32..e844919a8cb4 100644 --- a/packages/angular-cli/commands/github-pages-deploy.ts +++ b/packages/angular-cli/commands/github-pages-deploy.ts @@ -216,7 +216,7 @@ const githubPagesDeployCommand = Command.extend({ } function createNotFoundPage() { - const indexHtml = path.join(root, 'index.html'); + const indexHtml = path.join(root, this.project.index); const notFoundPage = path.join(root, '404.html'); return fsCopy(indexHtml, notFoundPage); }