decap-cms icon indicating copy to clipboard operation
decap-cms copied to clipboard

Error: Failed to load config.yml with hugo

Open RashiqAzhan opened this issue 1 year ago • 3 comments

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 avatar Jan 03 '24 08:01 RashiqAzhan

@RashiqAzhan please provide a screenshot of your error

martinjagodic avatar Jan 08 '24 14:01 martinjagodic

image

Here it is.

RashiqAzhan avatar Jan 13 '24 19:01 RashiqAzhan

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.

tonyd256 avatar Feb 01 '24 20:02 tonyd256

@RashiqAzhan config.yml is missing required fields. I get this response when trying with it image

Initial links are gone, see docs for configuration here https://decapcms.org/docs/configure-decap-cms/

hip3r avatar Mar 01 '24 20:03 hip3r

Duplicate of #6862, workaround is to manually change URL to https://example.com/admin/#/.

adrian5 avatar Mar 18 '24 18:03 adrian5