decaporg / decap-cms

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

TypeError: a.split is not a function #7309

Closed willktaboolar closed 1 month ago

willktaboolar commented 1 month ago

Describe the bug

To Reproduce

Expected behavior

Screenshots

Applicable Versions:

CMS configuration


backend:
  name: github
  repo: taboola/venus-apnews
  branch: master
  use_graphql: true
  base_url: http://venus-oauth-provider.venus.svc.kube.taboolasyndication.com:3000
  site_domain: venus-oauth-provider.venus.svc.kube.taboolasyndication.com
  commit_messages:
    create: Create {{collection}} “{{slug}}” site/APNEWS
    update: Update {{collection}} “{{slug}}” site/APNEWS
    delete: Delete {{collection}} “{{slug}}”
    uploadMedia: "[skip ci] Upload “{{path}}”"
    deleteMedia: "[skip ci] Delete “{{path}}”"
local_backend: true
publish_mode: editorial_workflow
media_folder: content/images
public_folder: ../images
site_url: https://apnews.com/buyline-personal-finance
logo_url: https://apnews.com/buyline-personal-finance/logo.svg
media_library:
  name: s3
slug:
  encoding: ascii
  clean_accents: true
  sanitize_replacement: "-"
defaults:
  collection:
    extension: mdx
    format: frontmatter
    identifier_field: name
    create: true
    summary: "{{filename}}"
    view_groups:
      - label: Created By
        field: createdBy
      - label: Updated By
        field: updatedBy
      - label: Published By
        field: updatedBy
  fields:
    type:
      label: Type
      name: type
      widget: hidden
    title:
      label: Title
      name: title
      widget: string
    name:
      label: Name
      name: name
      widget: string
    description:
      label: Description
      name: description
      widget: text
    altText:
      label: Alt Text
      name: alt
      widget: string
    baseImage:
      label: Image
      name: imageFile
      widget: image
    photographer:
      label: Photographer
      name: photographer
      widget: string
    articleRelation:
      label: Article
      name: article
      widget: relation
      collection: articles
      search_fields:
        - title
        - template
      value_field: ../articles/{{filename}}.{{extension}}
      display_fields:
        - "{{slug}}"
    imageSource:
      label: Image Source
      name: imageSource
      widget: image-source-select
      default: iStock
    image:
      label: Image
      name: image
      widget: object
      fields:
        - label: Image
          name: imageFile
          widget: image
          required: false
        - label: Alt Text
          name: alt
          widget: string
          required: false
        - label: Title
          name: title
          widget: string
          required: false
    imageWithCredit:
      label: Image
      name: image
      widget: object
      fields:
        - label: Image
          name: imageFile
          widget: image
          required: false
        - label: Alt Text
          name: alt
          widget: string
          required: false
        - label: Title
          name: title
          widget: string
          required: false
        - label: Image Source
          name: imageSource
          widget: image-source-select
          default: iStock
          required: false
        - label: Photographer
          name: photographer
          widget: string
          required: false
    body:
      label: Body
      name: body
      widget: markdown
      required: false
    nofollow:
      label: nofollow
      name: nofollow
      widget: boolean
      required: false
    createdAt:
      label: Created At
      name: createdAt
      widget: hidden
    createdBy:
      label: Created By
      name: createdBy
      widget: hidden
    updatedAt:
      label: Updated At
      name: updatedAt
      widget: hidden
    updatedBy:
      label: Updated By
      name: updatedBy
      widget: hidden
    publishedAt:
      label: Publi
...