3This project is configured to automatically deploy to GitHub Pages via GitHub Actions.
5## Setup Instructions
7### 1. Enable GitHub Pages in Repository Settings
91. Go to your GitHub repository
102. Navigate to **Settings** → **Pages**
113. Under **Source**, select **GitHub Actions**
13### 2. Push Your Changes
15Once you push to the `main` branch, the GitHub Action will automatically:
16- Build the project
17- Deploy to GitHub Pages
19```bash
20git add .
21git commit -m "Add GitHub Pages deployment"
22git push origin main
23```
25### 3. Access Your Site
27After the action completes successfully, your site will be available at:
28```
29https://<your-username>.github.io/proofery-web/
30```
32## Manual Deployment
34You can also trigger a deployment manually:
351. Go to **Actions** tab in your repository
362. Select the **Deploy to GitHub Pages** workflow
373. Click **Run workflow**
39## Configuration
41- **Workflow file**: `.github/workflows/deploy.yml`
42- **Base path**: `/proofery-web/` (configured in `vite.config.ts`)
43- **Build output**: `dist/` directory
45## Troubleshooting
47If the deployment fails:
481. Check the Actions tab for error messages
492. Ensure GitHub Pages is enabled in repository settings
503. Verify the repository has the correct permissions set in the workflow
514. Make sure the `main` branch is the default branch
53## Local Testing
55To test the production build locally:
56```bash
57npm run build
58npm run preview
59```