Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何使用自己的域名 #109

Open
manhuaxian opened this issue Dec 15, 2023 · 1 comment
Open

如何使用自己的域名 #109

manhuaxian opened this issue Dec 15, 2023 · 1 comment

Comments

@manhuaxian
Copy link

请问下如何用自己的域名代理codesandbox给的域名啊?麻烦大佬教一下。

@sfdzkj
Copy link

sfdzkj commented Dec 19, 2023

https://github.com/weaigc/bingo/blob/main/cloudflare/worker.js
2. 部署到 CloudFlare (需要有自己的域名才可以)
注册 Cloudflare 账号

添加一个新的网站,需要你有自己的域名并且将域名Name Server托管给 Cloudflare 才行(更多信息可自行 Google)

通过左侧菜单进入「Workers」,并点击「Create a Worker」。

创建 Worker 服务,复制 worker.js 全部代码粘贴至创建的服务中,保存并部署。

触发器 中自定义访问域名。

worker.js 代码中的域名换成codesandbox提供的域名。然后CloudFlare worker 中自定义域名。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants