Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
RashiqAzhan opened this issue Jan 3, 2024 · 5 comments
Closed

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

RashiqAzhan opened this issue Jan 3, 2024 · 5 comments
Labels
type: bug code to address defects in shipped code

Comments

@RashiqAzhan
Copy link

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 RashiqAzhan added the type: bug code to address defects in shipped code label Jan 3, 2024
@martinjagodic
Copy link
Member

@RashiqAzhan please provide a screenshot of your error

@RashiqAzhan
Copy link
Author

image

Here it is.

@tonyd256
Copy link

tonyd256 commented Feb 1, 2024

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
Copy link
Contributor

hip3r commented Mar 1, 2024

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

@martinjagodic martinjagodic closed this as not planned Won't fix, can't repro, duplicate, stale Mar 7, 2024
@adrian5
Copy link
Contributor

adrian5 commented Mar 18, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

No branches or pull requests

5 participants