Prepares a Vite project for GitHub Pages deployment via GitHub Actions. Patches vite.config.ts with the correct base path, generates .github/workflows/deploy.yml (build + deploy jobs), and optionally configures the Pages source to 'GitHub Actions' via the GitHub API. Handles GitHub Enterprise (GHE)
Prepares a Vite project for GitHub Pages deployment via GitHub Actions. Patches vite.config.ts with the correct base path, generates .github/workflows/deploy.yml (build + deploy jobs), and optionally configures the Pages source to 'GitHub Actions' via the GitHub API. Handles GitHub Enterprise (GHE) detection and discovers actual Pages URLs via curl redirect resolution for codespace-style random su