decap-cms
decap-cms copied to clipboard
Error: Failed to load config.yml with hugo
Describe the bug Unable to load config.yml on the admin panel with minimal hugo example from the docs.
Error: Failed to load config.yml (404)
To Reproduce
I've followed up to here and then set up the config.yml
as show here
I did npx decap-server
and hugo server
respectively in case the order matters.
Expected behavior Admin panel loads.
Applicable Versions:
- Decap CMS version: 3.0.12
- Git provider: local
- OS: Arch
- Browser version: Firefox 120.0.1
- hugo: 0.121.1
- Node.JS: v21.5.0
CMS configuration static/admin/config.yml
local_backend: true
backend:
name: git-gateway
@RashiqAzhan please provide a screenshot of your error
Here it is.
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.
@RashiqAzhan config.yml is missing required fields.
I get this response when trying with it
Initial links are gone, see docs for configuration here https://decapcms.org/docs/configure-decap-cms/
Duplicate of #6862, workaround is to manually change URL to https://example.com/admin/#/
.