我已经克隆了这个十一点:https://github.com/anborg/eleventy-netlify-boilerplate
我正在尝试使用本地git repo启用netlify CMS。
我希望在下面的截图中看到工作流部分(内容和媒体之间)。我应该更改什么设置才能启用工作流?
http://localhost:3000/admin/#/collections/blog

admin\config.yml
local_backend:
url : http://localhost:3030/api/v1
# when accessing this from other hosts
allowed_hosts : ['*']
backend:
name: github
repo: anborg/one-click-hugo-cms
branch: master # optional, defaults to master
open_authoring: true
# Uncomment below to enable drafts
publish_mode: editorial_workflow.env
# This file is used by stat:netlifyProxy for port 3030
#### below props are for npx netlify-cms-proxy-server #######
# optional, defaults to current directory
#GIT_REPO_DIRECTORY=FULL_PATH_TO_LOCAL_GIT_REPO
# optional, defaults to 8081
PORT=3030package.json具有代理
{
"proxy": "http://localhost:3030",
"name": "eleventy-netlify-boilerplate",
"version": "1.0.3",
"description": "A boilerplate for building a fast static website with the Eleventy static site generator, for deployment to Netlify.",
"scripts": {
"start": "run-p start:**",
"start:eleventy": "set ELEVENTY_EXPERIMENTAL=true && npx @11ty/eleventy --serve --port=3000",
"start:netlifyProxy": "npx netlify-cms-proxy-server",
"build": "npx eleventy",
"watch": "npx eleventy --watch",
"debug": "DEBUG=* npx eleventy"
},
"repository": {

发布于 2021-01-07 19:52:28
这看起来不起作用,因为local_backend部分设置不正确,或者编辑工作流还不支持它。
根据docs,您必须使用受支持的Git服务: GitLab、GitHub或BitBucket,因为编辑工作流程正在使用这些服务的特定拉-请求功能。
尝试从配置中删除该位,editorial_workflow将通过github网关进行连接。
https://stackoverflow.com/questions/65461921
复制相似问题