backend:
  name: github
  repo: "REPLACE_ME_OWNER_OR_ORG/REPLACE_ME_REPO"
  branch: main
  base_url: "https://REPLACE_ME_PROXY.workers.dev"
  auth_endpoint: auth

local_backend:
  url: http://localhost:8081/api/v1
  allowed_hosts:
    - localhost
    - 127.0.0.1

media_folder: "public/uploads"
public_folder: "/uploads"

site_url: "https://cornerfs.com"
display_url: "https://cornerfs.com"

show_preview_links: false
search: false

collections:
  - name: "business_settings"
    label: "Business Settings"
    delete: false
    editor:
      preview: false
    files:
      - name: "business_settings"
        label: "Business Settings"
        file: "src/data/site-settings.json"
        fields:
          - label: "Show announcement bar"
            name: "announcementEnabled"
            widget: "boolean"
            required: false
            default: false

          - label: "Announcement message"
            name: "announcementText"
            widget: "string"
            required: false

          - label: "Business hours"
            name: "hours"
            widget: "list"
            collapsed: false
            allow_add: false
            allow_remove: false
            allow_reorder: false
            summary: "{{fields.day}}: {{fields.value}}"
            fields:
              - label: "Day of the week"
                name: "day"
                widget: "select"
                options:
                  - "Monday"
                  - "Tuesday"
                  - "Wednesday"
                  - "Thursday"
                  - "Friday"
                  - "Saturday"
                  - "Sunday"

              - label: "Hours shown on the site"
                name: "value"
                widget: "string"
                hint: "Example: 7:00 AM - 5:00 PM or Closed"