Slash forward icon
  • Documentation
  • Plugins
  • API Reference
  • Examples
  • GitHub
    • comarkContent
    • content.get
    • content.list
    • content.navigation
    • content.stat
    • content.getSource
    • content.handler
    • content.watch
    • content.update
    • content.remove
    • content.cache
    • content.manifest
    • content.hooks
    • content.status
    • content.init
    • content.loadSnapshot
    • content.addParser
    • content.addListingFields
    • content.addServeHandler
    • createContentClient
    • content.get
    • content.list
    • content.navigation
    • defineContentPlugin
    • defineContentClientPlugin
    • Content
    • Client
    • Plugins
    • Typegen
    • File parsed
  • Cheat Sheet
  • CLI
Reference

content.getSource()

Return a configured source by name.

content.getSource(name)

Returns a configured Source by name, or undefined. Synchronous.

Parameters:

  • name: the source name ('default' for a single-source Content).

Returns: Source | undefined

Usage

usage.ts
const source = content.getSource('default')

content.stat

Look up a single manifest entry by path or key without parsing the body.

content.handler

Handle a web-standard Request and dispatch it by path to the Content instance data surface.

On this page

  • content.getSource(name)
  • Usage
  • Edit this page on GitHub
  • Star on GitHub
  • Comark docs
© 2026 Vercel, Inc.