Skip to content

Commit

Permalink
fix(build): use custom index value when copying to 404.html during gi…
Browse files Browse the repository at this point in the history
…thub deploy (#3201)
  • Loading branch information
AnalogJ authored and hansl committed Nov 23, 2016
1 parent c816402 commit b1cbf17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/angular-cli/commands/github-pages-deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ const githubPagesDeployCommand = Command.extend({
const projectName = this.project.pkg.name;

const outDir = CliConfig.fromProject().config.apps[0].outDir;
const indexFilename = CliConfig.fromProject().config.apps[0].index;

let ghPagesBranch = 'gh-pages';
let destinationBranch = options.userPage ? 'master' : ghPagesBranch;
Expand Down Expand Up @@ -216,7 +217,7 @@ const githubPagesDeployCommand = Command.extend({
}

function createNotFoundPage() {
const indexHtml = path.join(root, 'index.html');
const indexHtml = path.join(root, indexFilename);
const notFoundPage = path.join(root, '404.html');
return fsCopy(indexHtml, notFoundPage);
}
Expand Down

0 comments on commit b1cbf17

Please sign in to comment.