Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
exports.onPreRenderHTML = () => {
cms.registerApi('git', new GitClient('localhost'))
}
exports.onClientEntry = () => {
const { protocol, hostname, port } = window.location
const baseUrl = `${protocol}//${hostname}${
port != '80' ? `:${port}` : ''
}/___tina`
cms.registerApi('git', new GitClient(baseUrl))
}