1

I want to publish my root username.github.io repo on a domain myname.ca (nikolakuzmic.ca) and a separate repo vue-helloworld-ghpages on a Different domain name (mynextmovie.ca).

So far, I was only able to properly publish my root repo on nikolakuzmic.ca domain.

For the custom project, inside vue-helloworld-ghpages repo, on gh-pages branch, I added a CNAME file to point to mynextmovie.ca. On GoDaddy side, I added the 4 Github IPs (185.199.108-11.153) as 'A records' and a CNAME pointing to my root GitHub username (kuzmicni.github.io) as suggested in these 2 posts (Custom domain for github project pages, Custom domain for GitHub project pages) but the website is not loaded properly and only an empty page is displayed:

enter image description here

However, if I just publish the custom project by default it goes to nikolakuzmic.ca/vue-helloworld-ghpages and the content is loaded properly enter image description here

Any help highly appreciated!

wavemonger
  • 71
  • 8

1 Answers1

0

Turns out to solve the issue, you have to leave publicPath in the vue.config.js file empty like this

module.exports = {
}

instead of having

module.exports = {
    publicPath:'/REPO_NAME/'
}
Jeremy Caney
  • 7,102
  • 69
  • 48
  • 77
wavemonger
  • 71
  • 8