This is just an example setup with a custom domain for my other repo: https://github.com/sitek94/vite-deploy-demo
Add CNAME record in your DNS settings (in my case it's Netlify):
Update Vite config:
export default defineConfig({
plugins: [react()],
- base: '/vite-deploy-demo/',
+ base: '/'
})
Update Pages settings in repository settings: