# Cloudflare Pages: "Pro" Deployment Guide
**Wave Bee / Bnxo Apex Empire**

Netlify is great for beginners, but **Cloudflare Pages** is the choice for pros who need extreme speed, global edge functions, and deeper security integration.

## 1. Prerequisites (The "Pro" Stack)
-   **GitHub / GitLab**: Professionals always use Git-based CI/CD.
-   **Wrangler**: The Cloudflare CLI for managing your deployment from the terminal.

## 2. Setting Up Your Repository
1.  Initialize Git in your project folder:

    ```bash
    git init
    git add .
    git commit -m "Initial Wave Bee Master Archive"
    ```

2.  Push to a private GitHub repository.

## 3. Connecting to Cloudflare Pages
1.  Log in to [Cloudflare Dashboard](https://dash.cloudflare.com).
2.  Navigate to **Workers & Pages** > **Create application** > **Pages** > **Connect to Git**.
3.  Select your `wave-bee-archive` repository.
4.  **Build Settings**:
    -   **Framework Preset**: None (or use Vite if you have a frontend).
    -   **Build Command**: [None for static files].
    -   **Build Output Directory**: `./` (or `dist` if applicable).

## 4. The "Pro" Config (`wrangler.toml`)
Wrangler allows you to define your environment as code. Create a `wrangler.toml` file in your root directory to manage your Pages configuration.

### Sample `wrangler.toml` for Pages:

```toml
name = "wave-bee-landing"
pages_build_output_dir = "./"

[vars]
ENVIRONMENT = "production"
API_URL = "https://api.wavebee.com"

[[routes]]
pattern = "wavebee.com/*"
zone_name = "wavebee.com"
```

## 5. Security & Performance (Pro Tips)
-   **Custom Domains**: Use Cloudflare to manage your DNS. This allows you to enable **Proxying (Orange Cloud)** for DDoS protection and Caching.
-   **Access Control**: Use **Cloudflare Access (Zero Trust)** to put your Master Archive behind a login (GitHub/Google/SAML) without writing any code.
-   **Headers**: Use a `_headers` file to enforce strict security policies (HSTS, CSP).

---
*Pro Choice: Cloudflare Pages is faster because it serves content directly from the edge nodes closest to your users.*
