-
-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When Deploying, Resets My Custom Domain #87
Comments
@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 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: it should be generate the site and creating CNAME after generated ORcreating CNAME inside source directory OR for developer this pluginadd |
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?
The text was updated successfully, but these errors were encountered: