This repository contains the source code for a personal portfolio website built with Vite and React. The site is automatically deployed to GitHub Pages.
The website is live and accessible at: https://www.ayushcenzo.tech
To make changes to the live site, simply commit and push your code updates to the main branch. The GitHub Action will handle the rest.
git add .
git commit -m “Describe your changes”
git push origin main
This log documents the end-to-end process for deploying this Vite project to GitHub Pages with a custom domain.
A primary issue was that the built website’s HTML file could not find its CSS and JavaScript assets, causing 404 errors. This was due to incorrect asset paths being generated by Vite.
Solution: The base property was added to the defineConfig object and set to /. This ensures all asset paths are generated correctly for a website hosted at the root of a domain.
// vite.config.js
import { defineConfig } from ‘vite’;
import react from ‘@vitejs/plugin-react’;
export default defineConfig({
  plugins: [react()],
  // This line was the crucial fix:
  base: ‘/’,
});
To point the ayushcenzo.tech domain to GitHub’s servers, DNS records were configured at the domain provider’s admin panel.
| Type | Host / Name | Value / Points To | 
|---|---|---|
| A | @ | 185.199.108.153 | 
| A | @ | 185.199.109.153 | 
| A | @ | 185.199.110.153 | 
| A | @ | 185.199.111.153 | 
| CNAME | www | Ayushcenzo.github.io | 
A GitHub Actions workflow was created to automate the build-and-deploy process whenever code is pushed to the main branch.
The rakuten repository’s Pages settings were configured to use the workflow and custom domain.
During initial manual deployment attempts, Git was not tracking the local dist folder.
The deployment was successful. The website is live and fully functional at https://www.ayushcenzo.tech, with all assets loading correctly and HTTPS security enabled.