Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
function deployTemplates
import { deployTemplates } from "https://deno.land/x/netzo@v0.1.92/scripts/deploy-templates.ts";

Syncs all templates present in the @netzo/netzo repo to the 'dev' and 'prod' mongodb databases.

The function fetches the @netzo/netzo/templates/templates.json array of links, and maps them to an array of template.json objects to then either create a new or patch an existing template record in the templates collection of each of the mongodb databases