首先fork此项目https://github.com/rafinhaa/github-blog,我fork后的项目地址是
https://github.com/briteming/rgb,访问https://github.com/briteming/rgb/settings,勾选issues,然后新建一些 issues.
然后访问vercel.com/new,导入项目https://github.com/briteming/rgb/,在来到如下页面时,点击environment variables:
按如下内容,添加全部的环境变量:
VITE_GITHUB_USERNAME=你的github用户名
VITE_GITHUB_REPONAME=你的github仓库名
然后,点击deploy按钮,等待部署完成。部署完成后,我得到的网址是https://rgb-eight.vercel.app/ ,不过把博客里面的帖子在新开的tab里打开是打不开的。解决办法:
访问项目地址https://github.com/briteming/rgb ,点击顶部的 +,选择'create new file', 即访问https://github.com/briteming/rgb/new/main ,在name your file栏,输入vercel.json ,在其下面的内容框里,输入:
{
"rewrites": [{ "source": "/:path*", "destination": "/index.html" }]
}
然后,点击右上角的commit changes,保存文件。我写入的文件在此:
https://github.com/briteming/rgb/blob/main/vercel.json
演示网站:https://rgb-eight.vercel.app/
项目地址:https://github.com/rafinhaa/github-blog
https://github.com/briteming/rgb/
(https://github.com/StefanyVasc/github-blog
https://github.com/StefanyVasc/github-blog/blob/master/.env.example
https://github.com/briteming/svgb )
(https://github.com/thiagomrts/githubBlog
githubBlog/.env.example at main · thiagomrts/githubBlog · GitHub
https://github.com/briteming/tgb)
(https://github.com/brwuna/github-blog
https://github.com/brwuna/github-blog/blob/master/.env)
(https://github.com/PabloXT14/Github-Blog
https://github.com/PabloXT14/Github-Blog/blob/main/.env.example)
(https://github.com/fabiocasadossites/react-blogGithub-rocketseat
https://github.com/fabiocasadossites/react-blogGithub-rocketseat/blob/main/.env.example)
(https://github.com/jef53/github-blog
https://github.com/jef53/github-blog/blob/main/.env)
(https://github.com/GuilhermeJSales/github-blog
https://github.com/GuilhermeJSales/github-blog/blob/main/.env)
(https://github.com/vitorsemidio-dev/github-blog
https://github.com/vitorsemidio-dev/github-blog/blob/main/.env.example)
(https://github.com/luizfm/github-blog-reactjs
https://github.com/luizfm/github-blog-reactjs/blob/master/.env)
(https://github.com/JoseGu1llardi/github-blog
https://github.com/JoseGu1llardi/github-blog/blob/main/.env)
(https://github.com/felipe-gomes-vicente/github-blog
https://github.com/felipe-gomes-vicente/github-blog/blob/main/.env)
(https://github.com/guizioliveira/github-blog
https://github.com/guizioliveira/github-blog/blob/main/.env.example)
(https://github.com/DjalmaHenry/github-blog
https://github.com/DjalmaHenry/github-blog/blob/main/.env.example)
(https://github.com/heitorlisboa/trilha-react-desafio-03-github-blog
https://github.com/heitorlisboa/trilha-react-desafio-03-github-blog/blob/development/.env.example )
(https://github.com/leonunesdev/Github-Blog
https://github.com/leonunesdev/Github-Blog/blob/main/.env)
(https://github.com/LeonardoGarbelotti/github_blog
https://github.com/LeonardoGarbelotti/github_blog/blob/master/.env.example)
(https://github.com/SoshiNoir/Github-Blog
https://github.com/SoshiNoir/Github-Blog/blob/main/.env)
(https://github.com/juniordbz/github-blog
https://github.com/juniordbz/github-blog/blob/main/.env)
(https://github.com/lukeskw/react-gh-blog
https://github.com/lukeskw/react-gh-blog/blob/main/env.example)
(https://github.com/DuhBorba/github-blog
https://github.com/DuhBorba/github-blog/blob/main/.env)
(https://github.com/IgorThierry/ignite-react-github-blog
https://github.com/IgorThierry/ignite-react-github-blog/blob/main/.env.example)
(https://github.com/brunogayet/github-blog-ts
https://github.com/brunogayet/github-blog-ts/blob/main/.env.development)
(https://github.com/rodrigofontesdev/blog
https://github.com/rodrigofontesdev/blog/blob/main/.env.example)
(https://github.com/filipefdm/github-blog
https://github.com/filipefdm/github-blog/blob/master/.env)
(https://github.com/lucianotavernard/ignite-gh-blog
https://github.com/lucianotavernard/ignite-gh-blog/blob/master/.env.example )
(https://github.com/SCamposs/github-blog
https://github.com/SCamposs/github-blog/blob/Bretta/.env)
(https://github.com/davilucena222/github-blog
https://github.com/davilucena222/github-blog/blob/master/.env)
(https://github.com/GessioMori/gitblog
https://github.com/GessioMori/gitblog/blob/main/.env)
(https://github.com/italoxs/eliti-site-github
https://github.com/italoxs/eliti-site-github/blob/main/.env)
(https://github.com/VivianeMayra/ignite-blog
https://github.com/VivianeMayra/ignite-blog/blob/master/.env)
----------------------------------------------------------------------------------------------
同样的项目:
https://github.com/leandrodalmolin/github-blog
https://github.com/briteming/ldgb (我fork后的项目地址)
也要在项目的根目录下,新建vercel.json文件- https://github.com/briteming/ldgb/blob/main/vercel.json
要添加的环境变量是这里https://github.com/briteming/ldgb/blob/main/.env.example显示的3个:
VITE_GITHUB_USERNAME=briteming
VITE_GITHUB_REPO=ldgb
VITE_GITHUB_API_BASE_URL=https://api.github.com/
演示网站:https://ldgb.vercel.app/
--------------------------------------------
https://github.com/PeZunino/GithubBlog
我fork后的项目地址:https://github.com/briteming/pzgb
也要在项目的根目录下,新建vercel.json文件- https://github.com/briteming/pzgb/blob/main/vercel.json ,内容为:
{
"rewrites": [{ "source": "/:path*", "destination": "/index.html" }]
}
要添加的环境变量是这里https://github.com/briteming/pzgb/blob/main/.env.example显示的3个:
VITE_GITHUB_TOKEN="你的GITHUB_TOKEN的值"
VITE_GITHUB_OWNER="briteming"
VITE_GITHUB_REPO="pzgb"
演示网站:https://pzgb.vercel.app/
--------------------------------------
https://github.com/omarcoaur3lio/github-blog
我fork后的项目地址:https://github.com/briteming/ogb ,也要在项目的根目录下,新建vercel.json文件,内容为:
{
"rewrites": [{ "source": "/:path*", "destination": "/index.html" }]
}
要添加的环境变量是这里https://github.com/briteming/ogb/blob/main/env.sample所显示的2个变量:
VITE_USER_LOGIN=
VITE_REPO_NAME=
演示网址:https://ogb-gules.vercel.app/
-----------------------------------------------------
https://github.com/Maymisk/Git-Hub-Blog
我fork后的项目地址是https://github.com/briteming/mghb,也要在项目的根目录下,新建vercel.json文件,内容为:
{
"rewrites": [{ "source": "/:path*", "destination": "/index.html" }]
}
要添加的环境变量是这里https://github.com/briteming/mghb/blob/main/.env所显示的变量:VITE_REPO=briteming/mghb
演示网站:https://mghb.vercel.app/
No comments:
Post a Comment