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

Failed to load config.yml (404) #4175

Closed
sitefinitysteve opened this issue Aug 18, 2020 · 1 comment
Closed

Failed to load config.yml (404) #4175

sitefinitysteve opened this issue Aug 18, 2020 · 1 comment

Comments

@sitefinitysteve
Copy link

sitefinitysteve commented Aug 18, 2020

Describe the bug
On localhost I can get to /admin and see the netlifycms login, the network inspector shows it getting the config.yml from /admin/config.yml

When I deploy to Netlify though it seems that it's trying to load it from /config.yml.

image

If I hit it at the proper /admin/config.yml on live, it's clearly there, why it's being served from root I have no idea.

To Reproduce
https://www.sitefinitysteve.com/admin#/

Expected behavior
NetlifyCms admin login page

Screenshots

Applicable Versions:
netlify-cms-app 2.12.19
bootstrap.js:83 netlify-cms-core 2.30.3
index.js:27 netlify-cms 2.10.55
"nuxt": "^2.14.0",CMS configuration

# Backend https://www.netlifycms.org/docs/configuration-options/#backend
backend:
  name: git-gateway
  branch: master

# Publish mode https://www.netlifycms.org/docs/configuration-options/#publish-mode
publish_mode: editorial_workflow

# Media and Public Folders https://www.netlifycms.org/docs/configuration-options/#media-and-public-folders
media_folder: 'app/static/images/uploads' # Media files will be stored in the repo under images/uploads
public_folder: '/images/uploads'

# Collections https://www.netlifycms.org/docs/configuration-options/#collections
collections:
  - label: Settings
    name: settings
    files:
      - label: General
        name: general
        format: json
        file: 'app/content/settings/general.json'
        fields:
          - { label: Title, name: title, widget: string }
          - { label: 'Title Template', name: titleTemplate, widget: string }
          - { label: Logo, name: logo, widget: image }
          - { label: Icon, name: icon, widget: image }
          - { label: 'Loading Color', name: loadingColor, widget: string, default: '#000000' }
          - { label: 'SEO Description', name: seoDescription, widget: text, required: false }
          - { label: 'SEO Meta Image', name: seoMetaImage, widget: image, required: false }
      - label: Manifest
        name: manifest
        format: json
        file: 'app/content/settings/manifest.json'
        fields:
          - { label: Name, name: name, widget: string }
          - { label: 'Short name', name: shortName, widget: string }
          - { label: Description, name: description, widget: text }
          - { label: 'Theme color', name: themeColor, widget: string }
          - { label: 'Background color', name: backgroundColor, widget: string }
          - { label: Lang, name: lang, widget: string, default: en }

  - name: 'pages'
    label: 'Pages'
    folder: 'app/content/pages'
    create: true
    slug: '{{slug}}'
    format: 'json'
    fields:
      - { label: Title, name: title, widget: string }
      - { label: Subtitle, name: subtitle, widget: text, required: false }
      - { label: Content, name: content, widget: markdown }
      - { label: 'Featured Image', name: featuredImage, widget: image, required: false }
      - { label: 'SEO Description', name: seoDescription, widget: text, required: false }
      - { label: 'SEO Meta Image', name: seoMetaImage, widget: image, required: false }
  - name: 'blog'
    label: 'Blog'
    folder: 'app/content/blog'
    create: true
    slug: '{{slug}}'
    format: 'json'
    sort: 'publishedAt:desc'
    sortableFields: ['publishedAt', 'title']
    fields:
      - { label: Title, name: title, widget: string }
      - { label: 'Published At', name: publishedAt, widget: date }
      - { label: Content, name: content, widget: markdown }
      - { label: 'Featured Image', name: featuredImage, widget: image, required: false }
      - { label: 'SEO Description', name: seoDescription, widget: text, required: false }
      - { label: 'SEO Meta Image', name: seoMetaImage, widget: image, required: false }

Additional context
netlify.toml

[build]
  publish = "dist"
  command = "yarn generate"
  functions = "app/functions"

[[plugins]]
  package = "@netlify/plugin-sitemap"

  [plugins.inputs]
    exclude = [
      '**/tools.html',
      '**/200.html',
      '**/about.html',
      '**/contact/success.html',
      '**/admin',
    ]
@sitefinitysteve
Copy link
Author

Ok, so... it works now. I disabled the netlify asset optimization (of which I only had images checked... was causing janky images though so I disabled it)

I dunno!?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant