mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Updated SDK generator to fix Java examples Kotlin syntax issues and regenerated all affected documentation examples across multiple SDK versions.
577 B
577 B
import { Client, Sites, TemplateReferenceType } from "@appwrite.io/console";
const client = new Client() .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint .setProject('<YOUR_PROJECT_ID>'); // Your project ID
const sites = new Sites(client);
const result = await sites.createTemplateDeployment({ siteId: '<SITE_ID>', repository: '', owner: '', rootDirectory: '<ROOT_DIRECTORY>', type: TemplateReferenceType.Branch, reference: '', activate: false // optional });
console.log(result);