[{"data":1,"prerenderedAt":1116},["ShallowReactive",2],{"navigation_docs":3,"-docs-core-operations-jobs-clock":478,"-docs-core-operations-jobs-clock-surround":1111},[4,352,446],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Docs",false,"\u002Fdocs\u002Fcore","docs\u002F1.core",[10,35,141,174,195,212,242,318],{"title":11,"icon":6,"path":12,"stem":13,"children":14,"page":6},"Getting Started","\u002Fdocs\u002Fcore\u002Fgetting-started","docs\u002F1.core\u002F1.getting-started",[15,19,23,27,31],{"title":16,"path":17,"stem":18},"Introduction","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fintroduction","docs\u002F1.core\u002F1.getting-started\u002F1.introduction",{"title":20,"path":21,"stem":22},"Quick Start","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fquick-start","docs\u002F1.core\u002F1.getting-started\u002F2.quick-start",{"title":24,"path":25,"stem":26},"Add to an Existing Site","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fexisting-site","docs\u002F1.core\u002F1.getting-started\u002F3.existing-site",{"title":28,"path":29,"stem":30},"Configuration","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fconfiguration","docs\u002F1.core\u002F1.getting-started\u002F4.configuration",{"title":32,"path":33,"stem":34},"How Tenon works","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fhow-tenon-works","docs\u002F1.core\u002F1.getting-started\u002F5.how-tenon-works",{"title":36,"icon":6,"path":37,"stem":38,"children":39,"page":6},"Content Modeling","\u002Fdocs\u002Fcore\u002Fcontent-modeling","docs\u002F1.core\u002F2.content-modeling",[40,44,111,115,119],{"title":41,"path":42,"stem":43},"Collections and Globals","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fcollections-and-globals","docs\u002F1.core\u002F2.content-modeling\u002F1.collections-and-globals",{"title":45,"icon":6,"path":46,"stem":47,"children":48},"Fields","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002Findex",[49,51,55,59,63,67,71,75,79,83,87,91,95,99,103,107],{"title":50,"path":46,"stem":47},"Overview",{"title":52,"path":53,"stem":54},"Array","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Farray","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F01.array",{"title":56,"path":57,"stem":58},"Blocks","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fblocks","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F02.blocks",{"title":60,"path":61,"stem":62},"Boolean","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fboolean","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F03.boolean",{"title":64,"path":65,"stem":66},"Date","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fdate","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F04.date",{"title":68,"path":69,"stem":70},"File","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Ffile","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F05.file",{"title":72,"path":73,"stem":74},"Group","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fgroup","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F06.group",{"title":76,"path":77,"stem":78},"Image","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fimage","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F07.image",{"title":80,"path":81,"stem":82},"Link","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Flink","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F08.link",{"title":84,"path":85,"stem":86},"Number","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fnumber","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F09.number",{"title":88,"path":89,"stem":90},"Relation","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Frelation","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F10.relation",{"title":92,"path":93,"stem":94},"Rich text","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Frich-text","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F11.rich-text",{"title":96,"path":97,"stem":98},"Select","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fselect","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F12.select",{"title":100,"path":101,"stem":102},"Size","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fsize","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F13.size",{"title":104,"path":105,"stem":106},"Slug","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fslug","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F14.slug",{"title":108,"path":109,"stem":110},"Text","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Ftext","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F15.text",{"title":112,"path":113,"stem":114},"Relations","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Frelations","docs\u002F1.core\u002F2.content-modeling\u002F3.relations",{"title":116,"path":117,"stem":118},"Media","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fmedia","docs\u002F1.core\u002F2.content-modeling\u002F4.media",{"title":120,"icon":6,"path":121,"stem":122,"children":123},"Presets","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002Findex",[124,125,129,133,137],{"title":50,"path":121,"stem":122},{"title":126,"path":127,"stem":128},"Menu","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets\u002Fmenu","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F1.menu",{"title":130,"path":131,"stem":132},"Pages","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets\u002Fpages","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F2.pages",{"title":134,"path":135,"stem":136},"Settings","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets\u002Fsettings","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F3.settings",{"title":138,"path":139,"stem":140},"Strings","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets\u002Fstrings","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F4.strings",{"title":142,"icon":6,"path":143,"stem":144,"children":145,"page":6},"Working with Content","\u002Fdocs\u002Fcore\u002Fworking-with-content","docs\u002F1.core\u002F3.working-with-content",[146,150,154,158,162,166,170],{"title":147,"path":148,"stem":149},"Reading","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Freading","docs\u002F1.core\u002F3.working-with-content\u002F1.reading",{"title":151,"path":152,"stem":153},"Writing and Drafts","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fwriting","docs\u002F1.core\u002F3.working-with-content\u002F2.writing",{"title":155,"path":156,"stem":157},"Scheduled publishing","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fscheduled-publishing","docs\u002F1.core\u002F3.working-with-content\u002F3.scheduled-publishing",{"title":159,"path":160,"stem":161},"HTTP API and Client","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fhttp-api-and-client","docs\u002F1.core\u002F3.working-with-content\u002F4.http-api-and-client",{"title":163,"path":164,"stem":165},"Headless","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fheadless","docs\u002F1.core\u002F3.working-with-content\u002F5.headless",{"title":167,"path":168,"stem":169},"Localization","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Flocalization","docs\u002F1.core\u002F3.working-with-content\u002F6.localization",{"title":171,"path":172,"stem":173},"Hooks","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fhooks","docs\u002F1.core\u002F3.working-with-content\u002F7.hooks",{"title":175,"icon":6,"path":176,"stem":177,"children":178,"page":6},"Building Your Site","\u002Fdocs\u002Fcore\u002Fbuilding-your-site","docs\u002F1.core\u002F4.building-your-site",[179,183,187,191],{"title":180,"path":181,"stem":182},"Pages and SEO","\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Fpages-and-seo","docs\u002F1.core\u002F4.building-your-site\u002F1.pages-and-seo",{"title":184,"path":185,"stem":186},"Components","\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Fcomponents","docs\u002F1.core\u002F4.building-your-site\u002F2.components",{"title":188,"path":189,"stem":190},"Menus","\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Fmenus","docs\u002F1.core\u002F4.building-your-site\u002F3.menus",{"title":192,"path":193,"stem":194},"Live Preview","\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Flive-preview","docs\u002F1.core\u002F4.building-your-site\u002F4.live-preview",{"title":196,"icon":6,"path":197,"stem":198,"children":199,"page":6},"Users and Access","\u002Fdocs\u002Fcore\u002Fusers-and-access","docs\u002F1.core\u002F5.users-and-access",[200,204,208],{"title":201,"path":202,"stem":203},"Authentication","\u002Fdocs\u002Fcore\u002Fusers-and-access\u002Fauthentication","docs\u002F1.core\u002F5.users-and-access\u002F1.authentication",{"title":205,"path":206,"stem":207},"Access Control","\u002Fdocs\u002Fcore\u002Fusers-and-access\u002Faccess-control","docs\u002F1.core\u002F5.users-and-access\u002F2.access-control",{"title":209,"path":210,"stem":211},"API Keys","\u002Fdocs\u002Fcore\u002Fusers-and-access\u002Fapi-keys","docs\u002F1.core\u002F5.users-and-access\u002F3.api-keys",{"title":213,"icon":6,"path":214,"stem":215,"children":216},"Customization","\u002Fdocs\u002Fcore\u002Fcustomization","docs\u002F1.core\u002F6.customization\u002Findex",[217,218,222,226,230,234,238],{"title":50,"path":214,"stem":215},{"title":219,"path":220,"stem":221},"Admin","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fadmin","docs\u002F1.core\u002F6.customization\u002F1.admin",{"title":223,"path":224,"stem":225},"Custom Fields","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fcustom-fields","docs\u002F1.core\u002F6.customization\u002F2.custom-fields",{"title":227,"path":228,"stem":229},"Custom Pages and Actions","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fcustom-pages-and-actions","docs\u002F1.core\u002F6.customization\u002F3.custom-pages-and-actions",{"title":231,"path":232,"stem":233},"Styles and UI Libraries","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fstyles-and-ui-libraries","docs\u002F1.core\u002F6.customization\u002F4.styles-and-ui-libraries",{"title":235,"path":236,"stem":237},"Rich Text Extensions","\u002Fdocs\u002Fcore\u002Fcustomization\u002Frich-text-extensions","docs\u002F1.core\u002F6.customization\u002F5.rich-text-extensions",{"title":239,"path":240,"stem":241},"Plugins","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fplugins","docs\u002F1.core\u002F6.customization\u002F6.plugins",{"title":243,"icon":6,"path":244,"stem":245,"children":246},"Operations","\u002Fdocs\u002Fcore\u002Foperations","docs\u002F1.core\u002F7.operations\u002Findex",[247,248,266,288,306,310,314],{"title":50,"path":244,"stem":245},{"title":249,"icon":6,"path":250,"stem":251,"children":252},"Email","\u002Fdocs\u002Fcore\u002Foperations\u002Femail","docs\u002F1.core\u002F7.operations\u002F1.email\u002Findex",[253,254,258,262],{"title":50,"path":250,"stem":251},{"title":255,"path":256,"stem":257},"SMTP","\u002Fdocs\u002Fcore\u002Foperations\u002Femail\u002Fsmtp","docs\u002F1.core\u002F7.operations\u002F1.email\u002F1.smtp",{"title":259,"path":260,"stem":261},"Cloudflare","\u002Fdocs\u002Fcore\u002Foperations\u002Femail\u002Fcloudflare","docs\u002F1.core\u002F7.operations\u002F1.email\u002F2.cloudflare",{"title":263,"path":264,"stem":265},"Custom adapter","\u002Fdocs\u002Fcore\u002Foperations\u002Femail\u002Fcustom-adapter","docs\u002F1.core\u002F7.operations\u002F1.email\u002F3.custom-adapter",{"title":267,"icon":6,"path":268,"stem":269,"children":270},"Jobs","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002Findex",[271,272,276,280,284],{"title":50,"path":268,"stem":269},{"title":273,"path":274,"stem":275},"Queue jobs","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Fqueue-jobs","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002F1.queue-jobs",{"title":277,"path":278,"stem":279},"Recurring jobs","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Frecurring-jobs","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002F2.recurring-jobs",{"title":281,"path":282,"stem":283},"The clock","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Fclock","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002F3.clock",{"title":285,"path":286,"stem":287},"Manage jobs","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Fmanage-jobs","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002F4.manage-jobs",{"title":289,"icon":6,"path":290,"stem":291,"children":292},"Webhooks","\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks","docs\u002F1.core\u002F7.operations\u002F3.webhooks\u002Findex",[293,294,298,302],{"title":50,"path":290,"stem":291},{"title":295,"path":296,"stem":297},"Send webhooks","\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks\u002Fsend-webhooks","docs\u002F1.core\u002F7.operations\u002F3.webhooks\u002F1.send-webhooks",{"title":299,"path":300,"stem":301},"Receive webhooks","\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks\u002Freceive-webhooks","docs\u002F1.core\u002F7.operations\u002F3.webhooks\u002F2.receive-webhooks",{"title":303,"path":304,"stem":305},"Rebuild on publish","\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks\u002Frebuild-on-publish","docs\u002F1.core\u002F7.operations\u002F3.webhooks\u002F3.rebuild-on-publish",{"title":307,"path":308,"stem":309},"Backup and Restore","\u002Fdocs\u002Fcore\u002Foperations\u002Fbackup-and-restore","docs\u002F1.core\u002F7.operations\u002F4.backup-and-restore",{"title":311,"path":312,"stem":313},"Lifecycle Hooks","\u002Fdocs\u002Fcore\u002Foperations\u002Flifecycle-hooks","docs\u002F1.core\u002F7.operations\u002F5.lifecycle-hooks",{"title":315,"path":316,"stem":317},"Upgrades and Schema Changes","\u002Fdocs\u002Fcore\u002Foperations\u002Fupgrades-and-schema-changes","docs\u002F1.core\u002F7.operations\u002F6.upgrades-and-schema-changes",{"title":319,"icon":6,"path":320,"stem":321,"children":322,"page":6},"Reference","\u002Fdocs\u002Fcore\u002Freference","docs\u002F1.core\u002F8.reference",[323,326,344,348],{"title":28,"path":324,"stem":325},"\u002Fdocs\u002Fcore\u002Freference\u002Fconfiguration","docs\u002F1.core\u002F8.reference\u002F1.configuration",{"title":327,"icon":6,"path":328,"stem":329,"children":330},"API","\u002Fdocs\u002Fcore\u002Freference\u002Fapi","docs\u002F1.core\u002F8.reference\u002F2.api\u002Findex",[331,332,336,340],{"title":50,"path":328,"stem":329},{"title":333,"path":334,"stem":335},"Local API","\u002Fdocs\u002Fcore\u002Freference\u002Fapi\u002Flocal-api","docs\u002F1.core\u002F8.reference\u002F2.api\u002F1.local-api",{"title":337,"path":338,"stem":339},"Client","\u002Fdocs\u002Fcore\u002Freference\u002Fapi\u002Fclient","docs\u002F1.core\u002F8.reference\u002F2.api\u002F2.client",{"title":341,"path":342,"stem":343},"HTTP routes","\u002Fdocs\u002Fcore\u002Freference\u002Fapi\u002Fhttp-routes","docs\u002F1.core\u002F8.reference\u002F2.api\u002F3.http-routes",{"title":345,"path":346,"stem":347},"Errors and types","\u002Fdocs\u002Fcore\u002Freference\u002Ferrors-and-types","docs\u002F1.core\u002F8.reference\u002F3.errors-and-types",{"title":349,"path":350,"stem":351},"Package exports","\u002Fdocs\u002Fcore\u002Freference\u002Fpackage-exports","docs\u002F1.core\u002F8.reference\u002F4.package-exports",{"title":353,"icon":6,"path":354,"stem":355,"children":356,"page":6},"Guide","\u002Fdocs\u002Fguide","docs\u002F2.guide",[357,383,400,417],{"title":358,"icon":6,"path":359,"stem":360,"children":361},"Frameworks","\u002Fdocs\u002Fguide\u002Fframeworks","docs\u002F2.guide\u002F1.frameworks\u002Findex",[362,363,367,371,375,379],{"title":50,"path":359,"stem":360},{"title":364,"path":365,"stem":366},"Astro","\u002Fdocs\u002Fguide\u002Fframeworks\u002Fastro","docs\u002F2.guide\u002F1.frameworks\u002F1.astro",{"title":368,"path":369,"stem":370},"Nuxt","\u002Fdocs\u002Fguide\u002Fframeworks\u002Fnuxt","docs\u002F2.guide\u002F1.frameworks\u002F2.nuxt",{"title":372,"path":373,"stem":374},"TanStack Start","\u002Fdocs\u002Fguide\u002Fframeworks\u002Ftanstack-start","docs\u002F2.guide\u002F1.frameworks\u002F3.tanstack-start",{"title":376,"path":377,"stem":378},"Standalone","\u002Fdocs\u002Fguide\u002Fframeworks\u002Fstandalone","docs\u002F2.guide\u002F1.frameworks\u002F4.standalone",{"title":380,"path":381,"stem":382},"Other Frameworks","\u002Fdocs\u002Fguide\u002Fframeworks\u002Fother-frameworks","docs\u002F2.guide\u002F1.frameworks\u002F5.other-frameworks",{"title":384,"icon":6,"path":385,"stem":386,"children":387},"Deployment","\u002Fdocs\u002Fguide\u002Fdeployment","docs\u002F2.guide\u002F2.deployment\u002Findex",[388,389,393,397],{"title":50,"path":385,"stem":386},{"title":390,"path":391,"stem":392},"Node","\u002Fdocs\u002Fguide\u002Fdeployment\u002Fnode","docs\u002F2.guide\u002F2.deployment\u002F1.node",{"title":394,"path":395,"stem":396},"Vercel","\u002Fdocs\u002Fguide\u002Fdeployment\u002Fvercel","docs\u002F2.guide\u002F2.deployment\u002F2.vercel",{"title":259,"path":398,"stem":399},"\u002Fdocs\u002Fguide\u002Fdeployment\u002Fcloudflare","docs\u002F2.guide\u002F2.deployment\u002F3.cloudflare",{"title":401,"icon":6,"path":402,"stem":403,"children":404,"page":6},"Databases and Storage","\u002Fdocs\u002Fguide\u002Fdatabases-and-storage","docs\u002F2.guide\u002F3.databases-and-storage",[405,409,413],{"title":406,"path":407,"stem":408},"Databases","\u002Fdocs\u002Fguide\u002Fdatabases-and-storage\u002Fdatabases","docs\u002F2.guide\u002F3.databases-and-storage\u002F1.databases",{"title":410,"path":411,"stem":412},"Media Storage","\u002Fdocs\u002Fguide\u002Fdatabases-and-storage\u002Fmedia-storage","docs\u002F2.guide\u002F3.databases-and-storage\u002F2.media-storage",{"title":414,"path":415,"stem":416},"Image Providers","\u002Fdocs\u002Fguide\u002Fdatabases-and-storage\u002Fimage-providers","docs\u002F2.guide\u002F3.databases-and-storage\u002F3.image-providers",{"title":418,"icon":6,"path":419,"stem":420,"children":421,"page":6},"Recipes","\u002Fdocs\u002Fguide\u002Frecipes","docs\u002F2.guide\u002F4.recipes",[422,426,430,434,438,442],{"title":423,"path":424,"stem":425},"Seed Content","\u002Fdocs\u002Fguide\u002Frecipes\u002Fseed-content","docs\u002F2.guide\u002F4.recipes\u002F1.seed-content",{"title":427,"path":428,"stem":429},"Tracking and Consent","\u002Fdocs\u002Fguide\u002Frecipes\u002Ftracking-and-consent","docs\u002F2.guide\u002F4.recipes\u002F2.tracking-and-consent",{"title":431,"path":432,"stem":433},"Build a Custom Field","\u002Fdocs\u002Fguide\u002Frecipes\u002Fbuild-a-custom-field","docs\u002F2.guide\u002F4.recipes\u002F3.build-a-custom-field",{"title":435,"path":436,"stem":437},"Write a Plugin","\u002Fdocs\u002Fguide\u002Frecipes\u002Fwrite-a-plugin","docs\u002F2.guide\u002F4.recipes\u002F4.write-a-plugin",{"title":439,"path":440,"stem":441},"Build a Headless Site with Next.js","\u002Fdocs\u002Fguide\u002Frecipes\u002Fbuild-a-headless-site-with-nextjs","docs\u002F2.guide\u002F4.recipes\u002F5.build-a-headless-site-with-nextjs",{"title":443,"path":444,"stem":445},"Troubleshooting","\u002Fdocs\u002Fguide\u002Frecipes\u002Ftroubleshooting","docs\u002F2.guide\u002F4.recipes\u002F6.troubleshooting",{"title":447,"icon":6,"path":448,"stem":449,"children":450,"page":6},"CLI","\u002Fdocs\u002Fcli","docs\u002F3.cli",[451,454,458,462,466,470,474],{"title":50,"path":452,"stem":453},"\u002Fdocs\u002Fcli\u002Foverview","docs\u002F3.cli\u002F1.overview",{"title":455,"path":456,"stem":457},"create-tenoncms","\u002Fdocs\u002Fcli\u002Fcreate-tenoncms","docs\u002F3.cli\u002F2.create-tenoncms",{"title":459,"path":460,"stem":461},"tenon backup","\u002Fdocs\u002Fcli\u002Fbackup","docs\u002F3.cli\u002F3.backup",{"title":463,"path":464,"stem":465},"tenon users","\u002Fdocs\u002Fcli\u002Fusers","docs\u002F3.cli\u002F4.users",{"title":467,"path":468,"stem":469},"tenon media","\u002Fdocs\u002Fcli\u002Fmedia","docs\u002F3.cli\u002F5.media",{"title":471,"path":472,"stem":473},"tenon upgrade","\u002Fdocs\u002Fcli\u002Fupgrade","docs\u002F3.cli\u002F6.upgrade",{"title":475,"path":476,"stem":477},"tenon login","\u002Fdocs\u002Fcli\u002Flogin","docs\u002F3.cli\u002F7.login",{"id":479,"title":281,"body":480,"description":1104,"extension":1105,"links":1106,"meta":1107,"navigation":1108,"path":282,"seo":1109,"stem":283,"__hash__":1110},"docs\u002Fdocs\u002F1.core\u002F7.operations\u002F2.jobs\u002F3.clock.md",{"type":481,"value":482,"toc":1099},"minimark",[483,487,556,577,603,608,614,850,860,905,918,939,943,950,1008,1042,1074,1078,1095],[484,485,486],"p",{},"Nothing runs a job until the clock ticks. Each tick runs the due jobs one after another, up to 100. The framework adapters bring a clock, so on most hosts a job runs within a minute of its time:",[488,489,490,503],"table",{},[491,492,493],"thead",{},[494,495,496,500],"tr",{},[497,498,499],"th",{},"Host",[497,501,502],{},"Clock",[504,505,506,523,534,542],"tbody",{},[494,507,508,516],{},[509,510,511,512],"td",{},"Nuxt, TanStack Start, ",[513,514,515],"code",{},"tenonAdmin()",[509,517,518,519,522],{},"A Nitro scheduled task, ",[513,520,521],{},"tenon:jobs",", every minute",[494,524,525,531],{},[509,526,527,528],{},"Astro on Node, and ",[513,529,530],{},"astro dev",[509,532,533],{},"A timer in the server process, every minute, from the first request on",[494,535,536,539],{},[509,537,538],{},"Cloudflare with a Durable Object",[509,540,541],{},"The object's alarm. It wakes when a job is due",[494,543,544,547],{},[509,545,546],{},"Vercel, other serverless hosts",[509,548,549,550,555],{},"None. Call ",[551,552,554],"a",{"href":553},"#the-clock-route","the clock route"," from a cron service",[557,558,559,563,574],"ul",{},[560,561,562],"li",{},"The Nitro task needs a host that runs scheduled tasks, like Node, Bun, Deno or Cloudflare Cron Triggers. Nitro sets up the cron of the platform for you.",[560,564,565,566,569,570,573],{},"On Vercel, Nitro 3 (TanStack Start, standalone) turns the task into a Vercel Cron Job. Nitro 2 (Nuxt) does not, so the Nuxt task never runs there. The Nuxt module warns in a Vercel build unless ",[513,567,568],{},"jobs"," is ",[513,571,572],{},"false",".",[560,575,576],{},"The Astro timer stops with the process. Jobs that came due in the meantime run on the first tick after the next start.",[578,579,580,584,585,588,589,592,593,595,596,599,600,573],"warning",{},[581,582,583],"strong",{},"Vercel Hobby"," allows one cron job a day, and a deploy with a cron every minute fails. So the Vercel starters of ",[513,586,587],{},"npm create tenoncms"," set ",[513,590,591],{},"jobs: false",". Call the clock route from an outside cron service, or, on the Pro plan, remove ",[513,594,591],{}," (TanStack Start, standalone) or add the clock route to ",[513,597,598],{},"crons"," in ",[513,601,602],{},"vercel.json",[604,605,607],"h2",{"id":606},"turn-the-built-in-clock-off","Turn the built-in clock off",[484,609,610,611,613],{},"Set ",[513,612,591],{}," on the adapter:",[615,616,618,703,773],"code-group",{"sync":617},"framework",[619,620,626],"pre",{"className":621,"code":622,"filename":623,"language":624,"meta":625,"style":625},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","export default defineConfig({\n  integrations: [tenonCms({ jobs: false })],\n});\n","astro.config.ts","ts","",[513,627,628,652,691],{"__ignoreMap":625},[629,630,633,637,640,644,648],"span",{"class":631,"line":632},"line",1,[629,634,636],{"class":635},"s7zQu","export",[629,638,639],{"class":635}," default",[629,641,643],{"class":642},"s2Zo4"," defineConfig",[629,645,647],{"class":646},"sTEyZ","(",[629,649,651],{"class":650},"sMK4o","{\n",[629,653,655,659,662,665,668,670,673,676,678,682,685,688],{"class":631,"line":654},2,[629,656,658],{"class":657},"swJcz","  integrations",[629,660,661],{"class":650},":",[629,663,664],{"class":646}," [",[629,666,667],{"class":642},"tenonCms",[629,669,647],{"class":646},[629,671,672],{"class":650},"{",[629,674,675],{"class":657}," jobs",[629,677,661],{"class":650},[629,679,681],{"class":680},"sfNiH"," false",[629,683,684],{"class":650}," }",[629,686,687],{"class":646},")]",[629,689,690],{"class":650},",\n",[629,692,694,697,700],{"class":631,"line":693},3,[629,695,696],{"class":650},"}",[629,698,699],{"class":646},")",[629,701,702],{"class":650},";\n",[619,704,707],{"className":621,"code":705,"filename":706,"language":624,"meta":625,"style":625},"export default defineNuxtConfig({\n  modules: [\"tenoncms\u002Fnuxt\"],\n  tenonCms: { jobs: false },\n});\n","nuxt.config.ts",[513,708,709,722,745,764],{"__ignoreMap":625},[629,710,711,713,715,718,720],{"class":631,"line":632},[629,712,636],{"class":635},[629,714,639],{"class":635},[629,716,717],{"class":642}," defineNuxtConfig",[629,719,647],{"class":646},[629,721,651],{"class":650},[629,723,724,727,729,731,734,738,740,743],{"class":631,"line":654},[629,725,726],{"class":657},"  modules",[629,728,661],{"class":650},[629,730,664],{"class":646},[629,732,733],{"class":650},"\"",[629,735,737],{"class":736},"sfazB","tenoncms\u002Fnuxt",[629,739,733],{"class":650},[629,741,742],{"class":646},"]",[629,744,690],{"class":650},[629,746,747,750,752,755,757,759,761],{"class":631,"line":693},[629,748,749],{"class":657},"  tenonCms",[629,751,661],{"class":650},[629,753,754],{"class":650}," {",[629,756,675],{"class":657},[629,758,661],{"class":650},[629,760,681],{"class":680},[629,762,763],{"class":650}," },\n",[629,765,767,769,771],{"class":631,"line":766},4,[629,768,696],{"class":650},[629,770,699],{"class":646},[629,772,702],{"class":650},[619,774,777],{"className":621,"code":775,"filename":776,"language":624,"meta":625,"style":625},"export default defineConfig({\n  plugins: [tanstackStart(), nitro(), viteReact(), tenonAdmin({ jobs: false })],\n});\n","vite.config.ts",[513,778,779,791,842],{"__ignoreMap":625},[629,780,781,783,785,787,789],{"class":631,"line":632},[629,782,636],{"class":635},[629,784,639],{"class":635},[629,786,643],{"class":642},[629,788,647],{"class":646},[629,790,651],{"class":650},[629,792,793,796,798,800,803,806,809,812,814,816,819,821,823,826,828,830,832,834,836,838,840],{"class":631,"line":654},[629,794,795],{"class":657},"  plugins",[629,797,661],{"class":650},[629,799,664],{"class":646},[629,801,802],{"class":642},"tanstackStart",[629,804,805],{"class":646},"()",[629,807,808],{"class":650},",",[629,810,811],{"class":642}," nitro",[629,813,805],{"class":646},[629,815,808],{"class":650},[629,817,818],{"class":642}," viteReact",[629,820,805],{"class":646},[629,822,808],{"class":650},[629,824,825],{"class":642}," tenonAdmin",[629,827,647],{"class":646},[629,829,672],{"class":650},[629,831,675],{"class":657},[629,833,661],{"class":650},[629,835,681],{"class":680},[629,837,684],{"class":650},[629,839,687],{"class":646},[629,841,690],{"class":650},[629,843,844,846,848],{"class":631,"line":693},[629,845,696],{"class":650},[629,847,699],{"class":646},[629,849,702],{"class":650},[484,851,852,853,855,856,859],{},"Then run the jobs yourself, with ",[551,854,554],{"href":553}," or with ",[513,857,858],{},"cms.jobs.run()"," from your own timer:",[619,861,863],{"className":621,"code":862,"language":624,"meta":625,"style":625},"const { ran, next } = await cms.jobs.run();\n",[513,864,865],{"__ignoreMap":625},[629,866,867,871,873,876,878,881,883,886,889,892,894,896,898,901,903],{"class":631,"line":632},[629,868,870],{"class":869},"spNyl","const",[629,872,754],{"class":650},[629,874,875],{"class":646}," ran",[629,877,808],{"class":650},[629,879,880],{"class":646}," next ",[629,882,696],{"class":650},[629,884,885],{"class":650}," =",[629,887,888],{"class":635}," await",[629,890,891],{"class":646}," cms",[629,893,573],{"class":650},[629,895,568],{"class":646},[629,897,573],{"class":650},[629,899,900],{"class":642},"run",[629,902,805],{"class":646},[629,904,702],{"class":650},[484,906,907,910,911,914,915,573],{},[513,908,909],{},"ran"," is how many jobs ran. ",[513,912,913],{},"next"," is when the next job is due, in epoch milliseconds, or ",[513,916,917],{},"null",[484,919,920,922,923,926,927,930,931,934,935,938],{},[513,921,858],{}," exists only on the instance you import, and on its ",[513,924,925],{},"withDrafts()"," and ",[513,928,929],{},"withSession()"," copies. The ",[513,932,933],{},"cms"," in hooks and tasks has no ",[513,936,937],{},"run()",", because a hook holds a transaction open, and on a database with one connection the tasks would wait on it forever.",[604,940,942],{"id":941},"the-clock-route","The clock route",[484,944,945,946,949],{},"An outside clock can call ",[513,947,948],{},"\u002F_tenon\u002Fjobs\u002Frun",". The route exists once you set a secret:",[619,951,954],{"className":621,"code":952,"filename":953,"language":624,"meta":625,"style":625},"jobs: {\n  secret: process.env.CRON_SECRET,\n  tasks: { \u002F* ... *\u002F },\n},\n","tenon.config.ts",[513,955,956,966,988,1003],{"__ignoreMap":625},[629,957,958,961,963],{"class":631,"line":632},[629,959,568],{"class":960},"sBMFI",[629,962,661],{"class":650},[629,964,965],{"class":650}," {\n",[629,967,968,971,973,976,978,981,983,986],{"class":631,"line":654},[629,969,970],{"class":960},"  secret",[629,972,661],{"class":650},[629,974,975],{"class":646}," process",[629,977,573],{"class":650},[629,979,980],{"class":646},"env",[629,982,573],{"class":650},[629,984,985],{"class":646},"CRON_SECRET",[629,987,690],{"class":650},[629,989,990,993,995,997,1001],{"class":631,"line":693},[629,991,992],{"class":960},"  tasks",[629,994,661],{"class":650},[629,996,754],{"class":650},[629,998,1000],{"class":999},"sHwdD"," \u002F* ... *\u002F",[629,1002,763],{"class":650},[629,1004,1005],{"class":631,"line":766},[629,1006,1007],{"class":650},"},\n",[619,1009,1013],{"className":1010,"code":1011,"language":1012,"meta":625,"style":625},"language-sh shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","curl -H \"Authorization: Bearer $CRON_SECRET\" https:\u002F\u002Fexample.com\u002F_tenon\u002Fjobs\u002Frun\n# {\"ran\":2,\"next\":1767000000000}\n","sh",[513,1014,1015,1037],{"__ignoreMap":625},[629,1016,1017,1020,1023,1026,1029,1032,1034],{"class":631,"line":632},[629,1018,1019],{"class":960},"curl",[629,1021,1022],{"class":736}," -H",[629,1024,1025],{"class":650}," \"",[629,1027,1028],{"class":736},"Authorization: Bearer ",[629,1030,1031],{"class":646},"$CRON_SECRET",[629,1033,733],{"class":650},[629,1035,1036],{"class":736}," https:\u002F\u002Fexample.com\u002F_tenon\u002Fjobs\u002Frun\n",[629,1038,1039],{"class":631,"line":654},[629,1040,1041],{"class":999},"# {\"ran\":2,\"next\":1767000000000}\n",[557,1043,1044,1065,1068],{},[560,1045,1046,1047,926,1050,1053,1054,1056,1057,1060,1061,599,1063,573],{},"The route takes ",[513,1048,1049],{},"GET",[513,1051,1052],{},"POST",". Vercel Cron sends ",[513,1055,1049],{}," with ",[513,1058,1059],{},"Authorization: Bearer $CRON_SECRET",", so it works as it is. Add the path under ",[513,1062,598],{},[513,1064,602],{},[560,1066,1067],{},"Any cron or uptime service that can send a header works too.",[560,1069,1070,1071,573],{},"A missing or wrong token answers ",[513,1072,1073],{},"401",[604,1075,1077],{"id":1076},"related-resources","Related resources",[557,1079,1080,1085,1090],{},[560,1081,1082,1084],{},[551,1083,394],{"href":395},": the clock on Vercel.",[560,1086,1087,1089],{},[551,1088,277],{"href":278},": cron entries that need the clock to tick often enough.",[560,1091,1092,1094],{},[551,1093,289],{"href":290},": deliveries that wait for the clock too.",[1096,1097,1098],"style",{},"html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}",{"title":625,"searchDepth":654,"depth":654,"links":1100},[1101,1102,1103],{"id":606,"depth":654,"text":607},{"id":941,"depth":654,"text":942},{"id":1076,"depth":654,"text":1077},"Make due jobs run, with the clock of your adapter or a cron service.","md",null,{},true,{"title":281,"description":1104},"GT7CMRs9cuh4179Vz065EyrMcae1c1FFPqWFDL_kQX8",[1112,1114],{"title":277,"path":278,"stem":279,"description":1113,"children":-1},"Run a task on a cron schedule.",{"title":285,"path":286,"stem":287,"description":1115,"children":-1},"Watch, run, retry and cancel jobs in the admin, and choose who sees them.",1795884694302]