deploy-vercel README

The project's README from github.com/vvxw/deploy-vercel. As one markdown file: README.md.

Vercel 部署说明

1:点击Use this template ➡ Create a new repostory 创建一个私密项目, 名称随意

2: 修改index.js文件里的环境变量保存,不需要的留空

3: 用AI生成一个纯html的网页替换index.thml伪装网页

4:打开vercel连接项目部署

5:部署完成后确认没问题,将反代后的域名填写到index.js的DOMAIN环境变量里, 然后用 https://www.jshaman.com/index.html 混淆替换后保存

6:获取订阅信息,修改优选域名使用(节点里的address字段),可以自行套订阅器,比如:https://sub.eooce.xx.kg

Vercel 常用地区代码对照表

下面是常见 Vercel regions 代码对应关系:

地区代码 城市/区域 国家/地区 中文说明
hnd1 Tokyo Japan 日本东京
kix1 Osaka Japan 日本大阪
icn1 Seoul South Korea 韩国首尔
hkg1 Hong Kong Hong Kong 中国香港
sin1 Singapore Singapore 新加坡
syd1 Sydney Australia 澳大利亚悉尼
bom1 Mumbai India 印度孟买
del1 New Delhi India 印度新德里
fra1 Frankfurt Germany 德国法兰克福
lhr1 London United Kingdom 英国伦敦
cdg1 Paris France 法国巴黎
ams1 Amsterdam Netherlands 荷兰阿姆斯特丹
mad1 Madrid Spain 西班牙马德里
dub1 Dublin Ireland 爱尔兰都柏林
dxb1 Dubai United Arab Emirates 阿联酋迪拜
jnb1 Johannesburg South Africa 南非约翰内斯堡
cpt1 Cape Town South Africa 南非开普敦
gru1 São Paulo Brazil 巴西圣保罗
sfo1 San Francisco United States 美国旧金山
iad1 Washington, D.C. United States 美国华盛顿特区
pdx1 Portland United States 美国波特兰
mia1 Miami United States 美国迈阿密
ewr1 Newark United States 美国纽瓦克
yul1 Montréal Canada 加拿大蒙特利尔

注意事项

部署成功后,访问项目地址,确认:

  1. 页面能正常访问
  2. 生成的订阅链接能获取到节点
  3. vervel分配的域名已被墙,无法使用直连节点
  4. 哪吒不亮,不用填写

使用cloudflare的workers或snippets反代项目域名,给节点套CDN加速

export default {
    async fetch(request, env) {
        let url = new URL(request.url);
        if (url.pathname.startsWith('/')) {
            var arrStr = [
                'xxx-xxx.vercel.app',   // 此处单引号里填写你的vercel分配的域名,不包含https://
            ];
            url.protocol = 'https:'
            url.hostname = getRandomArray(arrStr)
            let new_request = new Request(url, request);
            return fetch(new_request);
        }
        return env.ASSETS.fetch(request);
    },
};
function getRandomArray(array) {
  const randomIndex = Math.floor(Math.random() * array.length);
  return array[randomIndex];
}

deploy-vercel (vvxw/deploy-vercel)

subscription
Searching Database…

What is this?This is a one-click Vercel template that deploys a disguised reverse-proxy node: it looks like a plain website but actually runs a proxy backend and generates a subscription link for proxy clients.
Is this a template I deploy, or a library I import?It is a deployable Vercel project template, not a library: you click 'Use this template' to create your own copy, then import and deploy it on Vercel.
How do I get it running?Create your own repo from the template, edit the environment variables in index.js, replace index.html with an AI-generated plain page for disguise, then import the project into Vercel, set Install Command to 'npm install', and deploy.
Do I need a Vercel account and anything else before deploying?Yes, you need a Vercel account to import and deploy the project; the backend itself relies on Node packages like 'ws', 'axios', '@grpc/grpc-js' and 'systeminformation', with Node 16+ required.
Will the deployed node actually work for direct connections?No — the README explicitly warns that Vercel's assigned domain is already blocked in some regions, so you must front it with Cloudflare Workers or Snippets and your own domain before it's usable, and fill that domain back into the DOMAIN env var.
Why do I need to replace index.html with an AI-generated page?The real index.html is swapped for a generic AI-made plain webpage so the Vercel deployment looks like an ordinary site rather than exposing the proxy backend.
What are the region codes in the README for?They list Vercel's edge regions (e.g. hnd1 Tokyo, fra1 Frankfurt, iad1 Washington DC) that you can pick as the preferred 'address' field when generating your node's subscription config.
How do I get a working subscription link after deploying?After deployment, set your Cloudflare-fronted domain in the DOMAIN environment variable of index.js, save it with obfuscation enabled, then retrieve the node info to build a subscription link for your client app.
What does the '哪吒' indicator mentioned in the notes mean?It refers to an optional Nezha monitoring panel integration; if that indicator doesn't light up, you can simply leave the related field empty.
Creator
vvxw
Size
<0.1 MB
Stars
2.1K
Updated
CommitAug 18
Age
1mo
Commits · 90 Days