mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 23:57:22 +02:00
Merge pull request #26 from JoelMarcey/cname
Write CNAME file if custom domain
This commit is contained in:
commit
56b5554799
1 changed files with 6 additions and 0 deletions
|
@ -413,6 +413,12 @@ function execute() {
|
|||
fs.copySync(file, targetFile);
|
||||
}
|
||||
});
|
||||
|
||||
/* Generate CNAME file if a custom domain is specified in siteConfig */
|
||||
if (siteConfig.cname) {
|
||||
let targetFile = CWD + "/build/" + siteConfig.projectName + "/CNAME";
|
||||
fs.writeFileSync(targetFile, siteConfig.cname);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = execute;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue