[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-1056":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":8,"htmlUrl":8,"language":9,"languages":8,"totalLinesOfCode":8,"stars":10,"forks":11,"watchers":12,"openIssues":13,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":14,"stars7d":14,"stars30d":15,"stars90d":14,"forks30d":14,"starsTrendScore":14,"compositeScore":16,"rankGlobal":8,"rankLanguage":8,"license":8,"archived":17,"fork":17,"defaultBranch":18,"hasWiki":19,"hasPages":17,"topics":20,"createdAt":8,"pushedAt":8,"updatedAt":21,"readmeContent":22,"aiSummary":23,"trendingCount":14,"starSnapshotCount":14,"syncStatus":24,"lastSyncTime":25,"discoverSource":26},1056,"netlify-relay","amirshaker000\u002Fnetlify-relay","amirshaker000",null,"HTML",591,1320,3,9,0,114,13.36,false,"master",true,[],"2026-06-12 02:00:22","# 🚀 Netlify XHTTP Relay\n\n> Simple Netlify Edge Function relay project  \n> Created by **amirs**\n\n---\n\n## 🇮🇷 Persian Guide\n\nPersian version: [README_FA.md](.\u002FREADME_FA.md)\n\n---\n\n## ⚠️ Important Notice\n\nUse this project only with your own domain\u002Fserver or with permission.\n\n\n---\n\n## ✨ Features\n\n- Netlify Edge Function relay\n- Simple setup\n- Works with Netlify website and Netlify CLI\n- Environment variable based backend target\n- Supports target domain with port\n\n---\n\n## 📦 Project Structure\n\n```txt\n.\n├── netlify\u002F\n│   └── edge-functions\u002F\n│       └── relay.js\n├── public\u002F\n│   └── index.html\n├── netlify.toml\n├── package.json\n├── README.md\n└── README_FA.md\n```\n\n---\n## 🍴 Deploy by Forking This Repository\n\n> This method works, but it is **not recommended** for most users.  \n> Recommended method: download\u002Fcopy the project and deploy your own version.\n\n## 🔐 Required Environment Variable\n\nYou must set:\n\n```txt\nTARGET_DOMAIN=https:\u002F\u002Fyour-domain.com:443\n```\n\n### Important\n\nThe domain **must include port**.\n\nCorrect examples:\n\n```txt\nhttps:\u002F\u002Fexample.com:443\nhttps:\u002F\u002Fsub.example.com:443\nhttps:\u002F\u002Fapi.example.com:8443\n```\n\nWrong examples:\n\n```txt\nhttps:\u002F\u002Fexample.com\nexample.com:443\nhttp:\u002F\u002Fexample.com:443\nlocalhost:443\n127.0.0.1:443\n```\n\n---\n\n## 🚀 Deploy with Netlify Website\n\nUse this project directly.\n\n### 1. Import project\n\nGo to Netlify:\n\n```txt\nhttps:\u002F\u002Fapp.netlify.com\n```\n\nThen:\n\n```txt\nAdd new project → Import an existing project\n```\n\nSelect your repository.\n\n---\n\n### 2. Build settings\n\nUse:\n\n| Setting | Value |\n|---|---|\n| Build command | `npm run build` |\n| Publish directory | `public` |\n\n---\n\n### 3. Add Environment Variable\n\nGo to:\n\n```txt\nSite configuration → Environment variables → Add variable\n```\n\nAdd:\n\n```txt\nKey: TARGET_DOMAIN\nValue: https:\u002F\u002Fyour-domain.com:443\n```\n\nExample:\n\n```txt\nTARGET_DOMAIN=https:\u002F\u002Fexample.com:443\n```\n\n---\n\n### 4. Redeploy\n\nAfter adding `TARGET_DOMAIN`, redeploy:\n\n```txt\nDeploys → Trigger deploy → Deploy site\n```\n\n---\n\n---\n\n## 🍴 Deploy by Forking This Repository\n\n> This method works, but it is **not recommended** for most users.  \n> Recommended method: download\u002Fcopy the project and deploy your own version.\n\n### Why fork is not recommended?\n\n- Your project stays connected to the original repository history\n- Beginners may get confused with GitHub fork\u002Fupdate options\n- If you want a clean personal project, copying the files is better\n\n### If you still want to use Fork\n\n1. Open this project on GitHub\n2. Click **Fork**\n3. Choose your GitHub account\n4. After fork is created, go to Netlify\n5. Click:\n\n```txt\nAdd new project → Import an existing project → GitHub\n```\n\n6. Select your forked repository\n7. Use these build settings:\n\n| Setting | Value |\n|---|---|\n| Build command | `npm run build` |\n| Publish directory | `public` |\n\n8. Add environment variable:\n\n```txt\nTARGET_DOMAIN=https:\u002F\u002Fyour-domain.com:443\n```\n\n9. Deploy the site\n\nAfter changing `TARGET_DOMAIN`, always redeploy.\n\n\n## 💻 Deploy with Netlify CLI\n\n### 1. Install Netlify CLI\n\n```bash\nnpm install -g netlify-cli\n```\n\n---\n\n### 2. Go to project folder\n\n```bash\ncd path\u002Fto\u002Fproject\n```\n\n---\n\n### 3. Login\n\n```bash\nnetlify login\n```\n\n---\n\n### 4. Link project\n\nIf your site already exists on Netlify:\n\n```bash\nnetlify link\n```\n\nIf you want CLI to create the site:\n\n```bash\nnetlify init\n```\n\n---\n\n### 5. Set TARGET_DOMAIN\n\nThe value must include port:\n\n```bash\nnetlify env:set TARGET_DOMAIN \"https:\u002F\u002Fyour-domain.com:443\" --scope functions --context production\n```\n\nExample:\n\n```bash\nnetlify env:set TARGET_DOMAIN \"https:\u002F\u002Fexample.com:443\" --scope functions --context production\n```\n\n---\n\n### 6. Check env\n\n```bash\nnetlify env:list\n```\n\nor:\n\n```bash\nnetlify env:get TARGET_DOMAIN --context production\n```\n\n---\n\n### 7. Deploy\n\n```bash\nnetlify deploy --prod\n```\n\n---\n\n## 🧪 Usage\n\n| What you open | What it forwards to |\n|---|---|\n| `https:\u002F\u002Fyour-site.netlify.app\u002F` | `https:\u002F\u002Fyour-domain.com:443\u002F` |\n| `https:\u002F\u002Fyour-site.netlify.app\u002Fpath` | `https:\u002F\u002Fyour-domain.com:443\u002Fpath` |\n| `https:\u002F\u002Fyour-site.netlify.app\u002Fapi\u002Ftest` | `https:\u002F\u002Fyour-domain.com:443\u002Fapi\u002Ftest` |\n\n---\n\n## 🔗 Example Config\n\nReplace placeholders with your own values.\n\n```txt\nvless:\u002F\u002FUUID@xxxxx=SNi:443?encryption=none&security=tls&sni=xxx&fp=chrome&alpn=h2%2Chttp%2F1.1&insecure=0&allowInsecure=0&type=xhttp&host=YOUR_NETLIFY_DOMAIN&path=YOUR_PATH&mode=auto&extra=%7B%22xPaddingBytes%22%3A%22100-1000%22%7D#net\n```\n\n### Replace these\n\n| Placeholder | Meaning |\n|---|---|\n| `UUID` | Your UUID |\n| `YOUR_NETLIFY_DOMAIN` | Your Netlify domain, for example `your-site.netlify.app` |\n| `YOUR_PATH` | Your backend path |\n\n\nUse this sni - adress for your config:\n\n```txt\nkubernetes.io\nhelm.sh\nletsencrypt.org\n```\n\n---\n\n## 🐞 Debug\n\n### Check deploy logs\n\n```txt\nSite → Deploys → Latest deploy → View logs\n```\n\n### Check Edge Function logs\n\n```txt\nSite → Edge Functions → relay → Logs\n```\n\n### Check env\n\n```bash\nnetlify env:list\nnetlify env:get TARGET_DOMAIN --context production\n```\n\n### Test your backend\n\n```bash\ncurl -I \"https:\u002F\u002Fyour-domain.com:443\"\n```\n\nIf this command fails, fix your backend\u002Fdomain\u002Fport first.\n\n---\n\n## ❌ Common Errors\n\n| Error | Reason | Fix |\n|---|---|---|\n| `dns error` | Domain cannot be resolved | Check domain DNS |\n| `connection refused` | Port is closed | Open the port or use correct port |\n| `SSL\u002FTLS error` | Certificate\u002FSNI problem | Use correct domain and valid SSL |\n| Still using old domain | Old deploy\u002Fenv | Set env again and redeploy |\n| `404` | Route problem | Check `netlify.toml` |\n\n---\n\n## ✅ Quick Checklist\n\n- [ ] `TARGET_DOMAIN` is set\n- [ ] `TARGET_DOMAIN` includes `https:\u002F\u002F`\n- [ ] `TARGET_DOMAIN` includes port\n- [ ] Backend domain resolves publicly\n- [ ] Backend port is open\n- [ ] You redeployed after changing env\n\n---\n\n## 💰 Donate\n\nhttps:\u002F\u002Freymit.ir\u002Famirshaker\n\nSolana:\n\n```txt\nE7S8EBUE5tkY5UaTgDvhaanJMeCi2DxPGYZukJGrJV8J\n```\n\n---\n\n## 📢 Telegram Channel\n\n```txt\nhttps:\u002F\u002Ft.me\u002Favaco_cloud\n```\n\n---\n\n## 💬 Contact\n\n```txt\n@ShakerFPS\n```\n\n---\n\n## 👤 Author\n\n**amirs**\n\n---\n\n## 📜 License\n\nMIT License © amirs\n","Netlify XHTTP Relay 是一个基于 Netlify Edge Functions 的简单中继项目。它通过在 Netlify 平台上运行的边缘函数实现请求转发，支持自定义后端目标域名（需包含端口号），并且能够与 Netlify 网站和 CLI 无缝集成。该项目结构清晰、易于配置，适合需要快速部署静态网站并希望利用 Netlify 的边缘计算能力来处理请求转发的开发者或团队使用。此外，项目提供了详细的部署指南，包括直接通过 Netlify 网站导入以及使用 Netlify CLI 进行本地部署的方法，确保用户可以根据自身需求选择最合适的部署方式。",2,"2026-06-11 02:41:22","CREATED_QUERY"]