【文件属性】:
文件名称:netlify-cms-oauth:将Netlify CMS用于Vercel上托管的网站
文件大小:36KB
文件格式:ZIP
更新时间:2021-05-22 05:57:43
netlify netlify-cms tailwindcss netlifycms vercel
Vercel上的Netlify CMS
使用TypeScript编写的用于Netlify CMS的简单OAuth2无服务器网关。
我为什么需要这个?
如果您想使用Netlify CMS来管理部署到Vercel的站点。
和需要服务器进行身份验证,而Netlify仅为部署到其的站点提供此服务器。 幸运的是,这种服务器很小,可以与Vercel的无服务器功能一起使用。
用法
在您的项目中修改config.yml文件:
backend :
name : [github | gitlab]
repo : adrian-ub/adrian-ub # Path to your Github/Gitlab repository
branch : main # Branch to update
base_url : https://netlify-cms.adrianub.verce
【文件预览】:
netlify-cms-oauth-main
----index.html(97KB)
----.vercelignore(13B)
----yarn.lock(4KB)
----lib()
--------config.ts(813B)
--------scopes.ts(67B)
----vercel.json(147B)
----LICENSE(1KB)
----README.md(1KB)
----404.html(37KB)
----api()
--------auth.ts(841B)
--------callback.ts(1KB)
----.gitignore(34B)
----package.json(269B)