Open ItsEthanH opened 1 year ago
@ItsEthanH which SSG are you using?
Heya, it's eleventy :)
I observed the same bug with the Hugo template: https://github.com/decaporg/one-click-hugo-cms/issues/781
I had the same issue. It seems Decap is trying to load the config from the root path (/config.yml
) instead of the admin path (/admin/config.yml
).
I have the same issue also with 11ty.
Hi everyone, I am today trying to use that CMS, and showing the same problem. It showed me a 404 config.yml not found. Has anyone solved the problem? Thanks
Not sure if it's helpful, but I use Eleventy and had to manually pass through the config file in the build settings. For eleventy it was adding config.addPassthroughCopy({ "admin/config.yml": "admin/config.yml" });
to my .eleventy.js
config file.
Describe the bug When deploying a project using DecapCMS, the first time you go to /admin/, an error message shows reading:
Error loading the CMS configuration Config Errors:
Error: Failed to load config.yml (404)
Check your config.yml file.
It seems as if this is because the URL isn't formatted correctly. Going to /admin/ redirects me to:
When instead I should go to
To Reproduce
Expected behavior For a user to immediately go to /admin/#/
Screenshots
Broken path and error:
Applicable Versions:
CMS configuration May not be relevant, as it's been replicated with a range of CMS configurations, however:
backend: name: git-gateway branch: main
_localbackend: true _logourl: https://codestitch.app/frontend/images/logo.png
_mediafolder: "public/assets/images/blog" _publicfolder: "/assets/images/blog"
collections: - name: "blog" label: "Blog" folder: "src/content/blog" create: true slug: "{{slug}}" fields: - { label: "Title", name: "title", widget: "string" } - { label: "Description", name: "description", widget: "string" } - { label: "Author", name: "author", widget: "string" } - { label: "Date", name: "date", widget: "datetime" } - { label: "Tags", name: "tags", widget: "list", default: ["post"] } - { label: "Featured Image", name: "image", widget: "image" } - { label: "Image Caption", name: "imageAlt", widget: "string" } - { label: "Body", name: "body", widget: "markdown" }