Relative Content

Tag Archive for reactjsgitgithubdeploymentvite

Problems with my hostinger custom domain when applying to my github repository

I’ve been facing this problem for days now. My github repository works perfectly fine with the free domain that github provides, but when I change it to a custom domain that I’ve purchased from Hostinger, it doesn’t work anymore. It’s a vite react static website that, as I said, it works fine as a normal hosted repo, but when I change it’s domain to my own one, it just turns into a blank page. When I check the console for errors I’m getting these 404 errors:

Vite React app: “npm run build” not building “dist” folder with all necessary files for deployment

I’m trying to deploy my vite app to my repo on github but something started to fail. I was able to deploy this project several times but after some changes made and purchasing the domain for publishing this website, it just started to fail it’s building process. I wanted to use my repository as the host with the purchased domain so that anyone could access the site with it’s domain name, and not with the github.io URL. These are my configuration files for the building process: