hexo-deployer-git
                                
                                 hexo-deployer-git copied to clipboard
                                
                                    hexo-deployer-git copied to clipboard
                            
                            
                            
                        When Deploying, Resets My Custom Domain
When using the deploy script, I've noticed that my custom domain configuration gets overwritten/reset. Is there something I need to set in the config? Otherwise, any idea how to fix this?
@ToddAT make your CNAME file under source folder.It will be copied to root when build result.
That's worth being added to the README.md
Agree, please add this to the README as I was super confused. Thanks.
just write below codes to generate in root hexo site project. Lets assume <hexodir>/generate.js
const Hexo = require("hexo");
const fs = require("fs");
const path = require("path");
const hexo = new hexo(__dirname);
hexo
  .init()
  .then(hexo.load)
  .then(() => hexo.call("generate"))
  .then(() => {
    fs.writeFileSync(
      path.join(__dirname, "public/CNAME"),
      "www.example.net"
    );
  })
  .catch(hexo.exit);
usage: node generate.js
it should be generate the site and creating CNAME after generated
OR
creating CNAME inside source directory
OR for developer this plugin
add cname key to option and push function to event generateAfter