-
Cloudflare Login: β Successfully logged in
- Account: doganlap@gmail.com
- Account ID: 66b51ac969911d4364f483d887a66c0f
- Wrangler CLI: β Authenticated
-
GitHub: β Connected
- Repository: www.shahin.com
- GitHub CLI: β Authenticated
-
Build: β Complete
- Output:
landing-page/dist/ - Size: 0.54 MB
- Files: 16 files ready
- Output:
-
Configuration: β Ready
- Cloudflare Pages config: β
- Wrangler config: β
- Build scripts: β
In Cloudflare Dashboard (already open):
-
Go to Pages:
- Click: "Pages" in left sidebar
- Click: "Create a project"
-
Connect to Git:
- Choose: "Connect to Git"
- Select: GitHub
- Authorize Cloudflare (browser will open)
- Accept the authorization in GitHub
- Select repository: www.shahin.com
- Click: "Begin setup"
-
Configure Build Settings:
- Project name:
shahin-grc-landing - Production branch:
master(ormain) - Framework preset: Vite
- Build command:
cd landing-page && npm install && npm run build - Build output directory:
landing-page/dist - Root directory:
/(leave empty or set to/) - Node version: 18
- Project name:
-
Set Environment Variables:
- Click: "Environment variables" (advanced settings)
- Add:
VITE_API_URL=https://api.shahin-ai.com/apiVITE_FRONTEND_URL=https://www.shahin-ai.com
-
Save and Deploy:
- Click: "Save and Deploy"
- Cloudflare will build and deploy automatically
- Wait for deployment to complete (~2-5 minutes)
-
Add Custom Domain:
- After deployment, go to: Custom domains
- Add:
www.shahin-ai.com - Wait for SSL certificate (< 5 minutes)
After frontend is deployed:
-
Run Tunnel Setup:
SETUP_CLOUDFLARE_TUNNEL.bat
-
Follow the prompts:
- Login to Cloudflare (if not already)
- Create tunnel:
shahin-backend - Configure tunnel to route
api.shahin-ai.comtolocalhost:3001 - Run tunnel
-
Start Backend:
cd backend npm start -
Run Tunnel:
cloudflared tunnel --config cloudflared-config.yml run
- Cloudflare Dashboard opens
- Click "Connect to Git" β "GitHub"
- Browser opens GitHub authorization page
- Click "Authorize Cloudflare Pages"
- Accept the authorization
- Repository is connected
- Deployment starts automatically
- Go to: Cloudflare Dashboard β Pages β shahin-grc-landing
- Check deployment status
- View build logs
- Test deployed site
- Go to: Cloudflare Dashboard β Pages β shahin-grc-landing β Settings
- Check: "Builds & deployments" β "Connected Git repository"
- Verify: Repository is connected
- Make a change to code
- Push to GitHub:
git push origin master - Check: Cloudflare Dashboard β Pages β Deployments
- Verify: New deployment is triggered automatically
| Item | Status |
|---|---|
| Cloudflare Login | β Done |
| GitHub Connection | β Done |
| Build | β Done |
| Pages Project | β³ You need to create |
| GitHub Integration | β³ You need to connect |
| Environment Variables | β³ You need to set |
| Custom Domain | β³ You need to add |
| Backend Tunnel | β³ You need to setup |
| Deployment | β³ Pending |
- Create Cloudflare Pages project
- Connect GitHub repository
- Authorize Cloudflare (accept in browser)
- Configure build settings
- Set environment variables
- Deploy
- Add custom domain
- Setup backend tunnel
- Test deployment
-
In Cloudflare Dashboard (already open):
- Create Pages project
- Connect to GitHub
- Authorize (accept when prompted)
- Configure and deploy
-
After deployment:
- Setup backend tunnel
- Test deployment
- Verify all features work
- Connection Guide:
CLOUDFLARE_CONNECTION_GUIDE.md - Quick Setup:
QUICK_CLOUDFLARE_GITHUB.md - Tunnel Setup:
SETUP_CLOUDFLARE_TUNNEL.bat
Status: β
Ready to Connect
Next: Create Pages project in Cloudflare Dashboard and connect GitHub
Authorization: You'll accept when Cloudflare requests GitHub access