decaporg / decap-cms

A Git-based CMS for Static Site Generators
https://decapcms.org
MIT License
17.67k stars 3.03k forks source link

Error: Failed to load config.yml with hugo #7023

Closed RashiqAzhan closed 4 months ago

RashiqAzhan commented 6 months ago

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:

CMS configuration static/admin/config.yml

local_backend: true

backend:
  name: git-gateway
martinjagodic commented 6 months ago

@RashiqAzhan please provide a screenshot of your error

RashiqAzhan commented 5 months ago

image

Here it is.

tonyd256 commented 5 months ago

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.

hip3r commented 4 months ago

@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/

adrian5 commented 3 months ago

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