How to use the @tinacms/git-client.GitClient function in @tinacms/git-client

To help you get started, we’ve selected a few @tinacms/git-client examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tinacms / tinacms / packages / gatsby-xeditor-git / gatsby-ssr.ts View on Github external
exports.onPreRenderHTML = () => {
  cms.registerApi('git', new GitClient('localhost'))
}
github tinacms / tinacms / packages / gatsby-xeditor-git / gatsby-browser.ts View on Github external
exports.onClientEntry = () => {
  const { protocol, hostname, port } = window.location
  const baseUrl = `${protocol}//${hostname}${
    port != '80' ? `:${port}` : ''
  }/___tina`
  cms.registerApi('git', new GitClient(baseUrl))
}

@tinacms/git-client

Apache-2.0
Latest version published 3 years ago

Package Health Score

62 / 100
Full package analysis

Popular @tinacms/git-client functions