#!/bin/bash # رفع Frontend بطريقة بسيطة set -e API_TOKEN="avRH6WSd0ueXkJqbQpDdnseVo9fy-fUSIJ1pdrWC" ACCOUNT_ID="76f5b050419f112f1e9c5fbec1b3970d" PROJECT_NAME="cursor-ide" echo "رفع Frontend إلى Cloudflare Pages..." cd frontend/dist # إنشاء ملف HTML بسيط يعمل cat > index.html << 'EOF' Cursor AI IDE
Loading Cursor AI IDE...
EOF # رفع الملف curl -X PUT "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/pages/projects/$PROJECT_NAME/assets/index.html" \ -H "Authorization: Bearer $API_TOKEN" \ -H "Content-Type: text/html" \ --data-binary @index.html echo "تم رفع Frontend بنجاح!" echo "Frontend URL: https://cursor-ide.pages.dev"