[{"data":1,"prerenderedAt":1553},["ShallowReactive",2],{"navigation_docs":3,"-docs-core-operations-lifecycle-hooks":478,"-docs-core-operations-lifecycle-hooks-surround":1548},[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":311,"body":480,"description":1542,"extension":1543,"links":1544,"meta":1545,"navigation":918,"path":312,"seo":1546,"stem":313,"__hash__":1547},"docs\u002Fdocs\u002F1.core\u002F7.operations\u002F5.lifecycle-hooks.md",{"type":481,"value":482,"toc":1534},"minimark",[483,491,728,733,736,817,823,842,851,877,880,885,997,1020,1036,1039,1044,1051,1054,1066,1193,1213,1216,1221,1379,1385,1471,1488,1506,1510,1530],[484,485,486,487,490],"p",{},"Lifecycle hooks belong to the CMS itself, not to one collection. They fill a new database, run code on every start, rebuild data after an import and report errors. For hooks on reads and writes, see ",[488,489,171],"a",{"href":172},".",[492,493,499],"pre",{"className":494,"code":495,"filename":496,"language":497,"meta":498,"style":498},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","export default defineCms({\n  \u002F\u002F ...\n  seed: async ({ cms }) => {\n    await cms.create(\"posts\", { title: \"Welcome\" });\n  },\n  onInit: async ({ cms }) => {\n    const site = await cms.getGlobal(\"general\");\n    console.log(`Serving ${site.title}`);\n  },\n});\n","tenon.config.ts","ts","",[500,501,502,526,533,562,615,621,641,676,713,718],"code",{"__ignoreMap":498},[503,504,507,511,514,518,522],"span",{"class":505,"line":506},"line",1,[503,508,510],{"class":509},"s7zQu","export",[503,512,513],{"class":509}," default",[503,515,517],{"class":516},"s2Zo4"," defineCms",[503,519,521],{"class":520},"sTEyZ","(",[503,523,525],{"class":524},"sMK4o","{\n",[503,527,529],{"class":505,"line":528},2,[503,530,532],{"class":531},"sHwdD","  \u002F\u002F ...\n",[503,534,536,539,542,546,549,553,556,559],{"class":505,"line":535},3,[503,537,538],{"class":516},"  seed",[503,540,541],{"class":524},":",[503,543,545],{"class":544},"spNyl"," async",[503,547,548],{"class":524}," ({",[503,550,552],{"class":551},"sHdIc"," cms",[503,554,555],{"class":524}," })",[503,557,558],{"class":544}," =>",[503,560,561],{"class":524}," {\n",[503,563,565,568,570,572,575,578,581,585,587,590,593,596,598,601,604,606,609,612],{"class":505,"line":564},4,[503,566,567],{"class":509},"    await",[503,569,552],{"class":520},[503,571,490],{"class":524},[503,573,574],{"class":516},"create",[503,576,521],{"class":577},"swJcz",[503,579,580],{"class":524},"\"",[503,582,584],{"class":583},"sfazB","posts",[503,586,580],{"class":524},[503,588,589],{"class":524},",",[503,591,592],{"class":524}," {",[503,594,595],{"class":577}," title",[503,597,541],{"class":524},[503,599,600],{"class":524}," \"",[503,602,603],{"class":583},"Welcome",[503,605,580],{"class":524},[503,607,608],{"class":524}," }",[503,610,611],{"class":577},")",[503,613,614],{"class":524},";\n",[503,616,618],{"class":505,"line":617},5,[503,619,620],{"class":524},"  },\n",[503,622,624,627,629,631,633,635,637,639],{"class":505,"line":623},6,[503,625,626],{"class":516},"  onInit",[503,628,541],{"class":524},[503,630,545],{"class":544},[503,632,548],{"class":524},[503,634,552],{"class":551},[503,636,555],{"class":524},[503,638,558],{"class":544},[503,640,561],{"class":524},[503,642,644,647,650,653,656,658,660,663,665,667,670,672,674],{"class":505,"line":643},7,[503,645,646],{"class":544},"    const",[503,648,649],{"class":520}," site",[503,651,652],{"class":524}," =",[503,654,655],{"class":509}," await",[503,657,552],{"class":520},[503,659,490],{"class":524},[503,661,662],{"class":516},"getGlobal",[503,664,521],{"class":577},[503,666,580],{"class":524},[503,668,669],{"class":583},"general",[503,671,580],{"class":524},[503,673,611],{"class":577},[503,675,614],{"class":524},[503,677,679,682,684,687,689,692,695,698,701,703,706,709,711],{"class":505,"line":678},8,[503,680,681],{"class":520},"    console",[503,683,490],{"class":524},[503,685,686],{"class":516},"log",[503,688,521],{"class":577},[503,690,691],{"class":524},"`",[503,693,694],{"class":583},"Serving ",[503,696,697],{"class":524},"${",[503,699,700],{"class":520},"site",[503,702,490],{"class":524},[503,704,705],{"class":520},"title",[503,707,708],{"class":524},"}`",[503,710,611],{"class":577},[503,712,614],{"class":524},[503,714,716],{"class":505,"line":715},9,[503,717,620],{"class":524},[503,719,721,724,726],{"class":505,"line":720},10,[503,722,723],{"class":524},"}",[503,725,611],{"class":520},[503,727,614],{"class":524},[729,730,732],"h2",{"id":731},"when-they-run","When they run",[484,734,735],{},"Each hook has one job:",[737,738,739,755],"table",{},[740,741,742],"thead",{},[743,744,745,749,752],"tr",{},[746,747,748],"th",{},"Hook",[746,750,751],{},"Runs",[746,753,754],{},"Use it to",[756,757,758,772,787,804],"tbody",{},[743,759,760,766,769],{},[761,762,763],"td",{},[500,764,765],{},"seed",[761,767,768],{},"Once per database",[761,770,771],{},"Fill a new database with starter content",[743,773,774,779,784],{},[761,775,776],{},[500,777,778],{},"onInit",[761,780,781,782],{},"On every start, after ",[500,783,765],{},[761,785,786],{},"Check settings, warm a cache or log the start",[743,788,789,794,801],{},[761,790,791],{},[500,792,793],{},"afterImport",[761,795,796,797,800],{},"After ",[500,798,799],{},"cms.import()"," or a restore commits",[761,802,803],{},"Rebuild what the content hooks keep up to date",[743,805,806,811,814],{},[761,807,808],{},[500,809,810],{},"afterError",[761,812,813],{},"On an unexpected error",[761,815,816],{},"Report the error to a service like Sentry",[484,818,819,820,822],{},"Nothing runs when your app imports ",[500,821,496],{},". The first database query of a process runs these steps once:",[824,825,826,830,835,839],"ol",{},[827,828,829],"li",{},"The migrations",[827,831,832,834],{},[500,833,765],{},", once per database",[827,836,837],{},[500,838,778],{},[827,840,841],{},"The query itself",[484,843,844,845,847,848,850],{},"Every other query waits until the steps are done. If ",[500,846,765],{}," or ",[500,849,778],{}," throws, that query fails, and the next query tries again.",[852,853,854,861],"ul",{},[827,855,856,857,860],{},"Each hook gets ",[500,858,859],{},"cms",", the server API. It skips the access rules and is untyped.",[827,862,863,865,866,869,870,873,874,490],{},[488,864,239],{"href":240}," set the same hooks on ",[500,867,868],{},"definePlugin()",". They run in the order of ",[500,871,872],{},"plugins",", then the hooks of ",[500,875,876],{},"defineCms()",[729,878,879],{"id":765},"Seed",[484,881,882,884],{},[500,883,765],{}," fills a new database, for example with sample content or a backup archive:",[492,886,888],{"className":494,"code":887,"filename":496,"language":497,"meta":498,"style":498},"import { openAsBlob } from \"node:fs\";\n\nexport default defineCms({\n  \u002F\u002F ...\n  seed: async ({ cms }) => {\n    await cms.import(await openAsBlob(\"seed\u002Fcontent.zip\"));\n  },\n});\n",[500,889,890,914,920,932,936,954,985,989],{"__ignoreMap":498},[503,891,892,895,897,900,902,905,907,910,912],{"class":505,"line":506},[503,893,894],{"class":509},"import",[503,896,592],{"class":524},[503,898,899],{"class":520}," openAsBlob",[503,901,608],{"class":524},[503,903,904],{"class":509}," from",[503,906,600],{"class":524},[503,908,909],{"class":583},"node:fs",[503,911,580],{"class":524},[503,913,614],{"class":524},[503,915,916],{"class":505,"line":528},[503,917,919],{"emptyLinePlaceholder":918},true,"\n",[503,921,922,924,926,928,930],{"class":505,"line":535},[503,923,510],{"class":509},[503,925,513],{"class":509},[503,927,517],{"class":516},[503,929,521],{"class":520},[503,931,525],{"class":524},[503,933,934],{"class":505,"line":564},[503,935,532],{"class":531},[503,937,938,940,942,944,946,948,950,952],{"class":505,"line":617},[503,939,538],{"class":516},[503,941,541],{"class":524},[503,943,545],{"class":544},[503,945,548],{"class":524},[503,947,552],{"class":551},[503,949,555],{"class":524},[503,951,558],{"class":544},[503,953,561],{"class":524},[503,955,956,958,960,962,964,966,969,971,973,975,978,980,983],{"class":505,"line":623},[503,957,567],{"class":509},[503,959,552],{"class":520},[503,961,490],{"class":524},[503,963,894],{"class":516},[503,965,521],{"class":577},[503,967,968],{"class":509},"await",[503,970,899],{"class":516},[503,972,521],{"class":577},[503,974,580],{"class":524},[503,976,977],{"class":583},"seed\u002Fcontent.zip",[503,979,580],{"class":524},[503,981,982],{"class":577},"))",[503,984,614],{"class":524},[503,986,987],{"class":505,"line":643},[503,988,620],{"class":524},[503,990,991,993,995],{"class":505,"line":678},[503,992,723],{"class":524},[503,994,611],{"class":520},[503,996,614],{"class":524},[852,998,999,1005,1008,1011,1014],{},[827,1000,1001,1002,1004],{},"Your seed runs only when the database has no documents and no globals. A site that adds ",[500,1003,765],{}," later is not seeded.",[827,1006,1007],{},"A plugin's seed runs the first time the plugin starts on a database, also on one with content. Plugins use it to install defaults.",[827,1009,1010],{},"A table records which seeds ran, so each seed runs once per database.",[827,1012,1013],{},"All seeds of one start run in one transaction. If one throws, nothing is kept, and all of them run again on the next start. Media files that a seed uploads stay in storage.",[827,1015,1016,1017,1019],{},"Use the ",[500,1018,859],{}," the seed gets. Inside the transaction, another instance waits forever on a database with one connection.",[484,1021,1022,1023,1027,1028,1031,1032,1035],{},"To make a seed archive, build the content in the admin, then download it under ",[1024,1025,1026],"strong",{},"Manage → Backup",". See ",[488,1029,1030],{"href":308},"Backup and restore"," and the ",[488,1033,1034],{"href":424},"Seed content"," recipe.",[729,1037,778],{"id":1038},"oninit",[484,1040,1041,1043],{},[500,1042,778],{}," runs on every start, after the seeds and before the first request.",[1045,1046,1047,1048,1050],"warning",{},"Serverless hosts start a process often, sometimes for each request. Keep ",[500,1049,778],{}," fast, and safe to run many times.",[729,1052,793],{"id":1053},"afterimport",[484,1055,1056,1057,1059,1060,847,1062,1065],{},"An import writes rows straight into the database and skips the content hooks. ",[500,1058,793],{}," runs after ",[500,1061,799],{},[500,1063,1064],{},"tenon restore"," commits, so you can rebuild what those hooks would have kept up to date:",[492,1067,1069],{"className":494,"code":1068,"filename":496,"language":497,"meta":498,"style":498},"import { rebuildSearchIndex } from \".\u002Fsearch\";\n\nexport default defineCms({\n  \u002F\u002F ...\n  afterImport: async ({ cms, mode }) => {\n    await rebuildSearchIndex(cms);\n    console.log(`Import done (${mode})`);\n  },\n});\n",[500,1070,1071,1093,1097,1109,1113,1137,1151,1181,1185],{"__ignoreMap":498},[503,1072,1073,1075,1077,1080,1082,1084,1086,1089,1091],{"class":505,"line":506},[503,1074,894],{"class":509},[503,1076,592],{"class":524},[503,1078,1079],{"class":520}," rebuildSearchIndex",[503,1081,608],{"class":524},[503,1083,904],{"class":509},[503,1085,600],{"class":524},[503,1087,1088],{"class":583},".\u002Fsearch",[503,1090,580],{"class":524},[503,1092,614],{"class":524},[503,1094,1095],{"class":505,"line":528},[503,1096,919],{"emptyLinePlaceholder":918},[503,1098,1099,1101,1103,1105,1107],{"class":505,"line":535},[503,1100,510],{"class":509},[503,1102,513],{"class":509},[503,1104,517],{"class":516},[503,1106,521],{"class":520},[503,1108,525],{"class":524},[503,1110,1111],{"class":505,"line":564},[503,1112,532],{"class":531},[503,1114,1115,1118,1120,1122,1124,1126,1128,1131,1133,1135],{"class":505,"line":617},[503,1116,1117],{"class":516},"  afterImport",[503,1119,541],{"class":524},[503,1121,545],{"class":544},[503,1123,548],{"class":524},[503,1125,552],{"class":551},[503,1127,589],{"class":524},[503,1129,1130],{"class":551}," mode",[503,1132,555],{"class":524},[503,1134,558],{"class":544},[503,1136,561],{"class":524},[503,1138,1139,1141,1143,1145,1147,1149],{"class":505,"line":623},[503,1140,567],{"class":509},[503,1142,1079],{"class":516},[503,1144,521],{"class":577},[503,1146,859],{"class":520},[503,1148,611],{"class":577},[503,1150,614],{"class":524},[503,1152,1153,1155,1157,1159,1161,1163,1166,1168,1171,1173,1175,1177,1179],{"class":505,"line":643},[503,1154,681],{"class":520},[503,1156,490],{"class":524},[503,1158,686],{"class":516},[503,1160,521],{"class":577},[503,1162,691],{"class":524},[503,1164,1165],{"class":583},"Import done (",[503,1167,697],{"class":524},[503,1169,1170],{"class":520},"mode",[503,1172,723],{"class":524},[503,1174,611],{"class":583},[503,1176,691],{"class":524},[503,1178,611],{"class":577},[503,1180,614],{"class":524},[503,1182,1183],{"class":505,"line":678},[503,1184,620],{"class":524},[503,1186,1187,1189,1191],{"class":505,"line":715},[503,1188,723],{"class":524},[503,1190,611],{"class":520},[503,1192,614],{"class":524},[484,1194,1195,1197,1198,1201,1202,847,1205,1208,1209,1212],{},[500,1196,1170],{}," is ",[500,1199,1200],{},"\"replace\"",", ",[500,1203,1204],{},"\"merge\"",[500,1206,1207],{},"\"missing\"",", and ",[500,1210,1211],{},"counts"," holds the number of imported rows. If the hook throws, the import call throws too, but the imported content stays.",[729,1214,810],{"id":1215},"aftererror",[484,1217,1218,1220],{},[500,1219,810],{}," gets every unexpected error, for example to report it to Sentry:",[492,1222,1224],{"className":494,"code":1223,"filename":496,"language":497,"meta":498,"style":498},"import * as Sentry from \"@sentry\u002Fnode\";\n\nexport default defineCms({\n  \u002F\u002F ...\n  afterError: ({ error, source, request, job }) => {\n    Sentry.captureException(error, { tags: { source }, extra: { url: request?.url, job } });\n  },\n});\n",[500,1225,1226,1251,1255,1267,1271,1304,1367,1371],{"__ignoreMap":498},[503,1227,1228,1230,1233,1236,1239,1242,1244,1247,1249],{"class":505,"line":506},[503,1229,894],{"class":509},[503,1231,1232],{"class":524}," *",[503,1234,1235],{"class":509}," as",[503,1237,1238],{"class":520}," Sentry ",[503,1240,1241],{"class":509},"from",[503,1243,600],{"class":524},[503,1245,1246],{"class":583},"@sentry\u002Fnode",[503,1248,580],{"class":524},[503,1250,614],{"class":524},[503,1252,1253],{"class":505,"line":528},[503,1254,919],{"emptyLinePlaceholder":918},[503,1256,1257,1259,1261,1263,1265],{"class":505,"line":535},[503,1258,510],{"class":509},[503,1260,513],{"class":509},[503,1262,517],{"class":516},[503,1264,521],{"class":520},[503,1266,525],{"class":524},[503,1268,1269],{"class":505,"line":564},[503,1270,532],{"class":531},[503,1272,1273,1276,1278,1280,1283,1285,1288,1290,1293,1295,1298,1300,1302],{"class":505,"line":617},[503,1274,1275],{"class":516},"  afterError",[503,1277,541],{"class":524},[503,1279,548],{"class":524},[503,1281,1282],{"class":551}," error",[503,1284,589],{"class":524},[503,1286,1287],{"class":551}," source",[503,1289,589],{"class":524},[503,1291,1292],{"class":551}," request",[503,1294,589],{"class":524},[503,1296,1297],{"class":551}," job",[503,1299,555],{"class":524},[503,1301,558],{"class":544},[503,1303,561],{"class":524},[503,1305,1306,1309,1311,1314,1316,1319,1321,1323,1326,1328,1330,1332,1335,1338,1340,1342,1345,1347,1349,1352,1355,1357,1359,1361,1363,1365],{"class":505,"line":623},[503,1307,1308],{"class":520},"    Sentry",[503,1310,490],{"class":524},[503,1312,1313],{"class":516},"captureException",[503,1315,521],{"class":577},[503,1317,1318],{"class":520},"error",[503,1320,589],{"class":524},[503,1322,592],{"class":524},[503,1324,1325],{"class":577}," tags",[503,1327,541],{"class":524},[503,1329,592],{"class":524},[503,1331,1287],{"class":520},[503,1333,1334],{"class":524}," },",[503,1336,1337],{"class":577}," extra",[503,1339,541],{"class":524},[503,1341,592],{"class":524},[503,1343,1344],{"class":577}," url",[503,1346,541],{"class":524},[503,1348,1292],{"class":520},[503,1350,1351],{"class":524},"?.",[503,1353,1354],{"class":520},"url",[503,1356,589],{"class":524},[503,1358,1297],{"class":520},[503,1360,608],{"class":524},[503,1362,608],{"class":524},[503,1364,611],{"class":577},[503,1366,614],{"class":524},[503,1368,1369],{"class":505,"line":643},[503,1370,620],{"class":524},[503,1372,1373,1375,1377],{"class":505,"line":678},[503,1374,723],{"class":524},[503,1376,611],{"class":520},[503,1378,614],{"class":524},[484,1380,1381,1384],{},[500,1382,1383],{},"source"," says where the error happened:",[737,1386,1387,1398],{},[740,1388,1389],{},[743,1390,1391,1395],{},[746,1392,1393],{},[500,1394,1383],{},[746,1396,1397],{},"When",[756,1399,1400,1424,1450,1459],{},[743,1401,1402,1407],{},[761,1403,1404],{},[500,1405,1406],{},"request",[761,1408,1409,1410,1413,1414,1201,1417,847,1420,1423],{},"A route answers ",[500,1411,1412],{},"500",". Expected errors, like ",[500,1415,1416],{},"400",[500,1418,1419],{},"401",[500,1421,1422],{},"404",", skip it",[743,1425,1426,1431],{},[761,1427,1428],{},[500,1429,1430],{},"job",[761,1432,1433,1434,1436,1437,1201,1440,1201,1443,1446,1447],{},"A job attempt throws. ",[500,1435,1430],{}," has ",[500,1438,1439],{},"id",[500,1441,1442],{},"task",[500,1444,1445],{},"attempts"," and ",[500,1448,1449],{},"maxAttempts",[743,1451,1452,1456],{},[761,1453,1454],{},[500,1455,765],{},[761,1457,1458],{},"A seed throws",[743,1460,1461,1466],{},[761,1462,1463],{},[500,1464,1465],{},"init",[761,1467,1468,1470],{},[500,1469,778],{}," throws",[852,1472,1473,1479],{},[827,1474,1475,1476,1478],{},"An error that ",[500,1477,810],{}," throws is logged and dropped.",[827,1480,1481,1482,1485,1486,490],{},"An error in a local API call from your own server code reaches your own ",[500,1483,1484],{},"catch",", not ",[500,1487,810],{},[1489,1490,1491,1492,1494,1495,1498,1499,1502,1503,1505],"note",{},"The content hooks have an ",[500,1493,810],{}," stage too, in ",[500,1496,1497],{},"hooks",". It runs for a failed operation on a collection, with the ",[500,1500,1501],{},"operation",". The lifecycle ",[500,1504,810],{}," also sees jobs and the start. Use it for error reporting.",[729,1507,1509],{"id":1508},"related-resources","Related resources",[852,1511,1512,1517,1522],{},[827,1513,1514,1516],{},[488,1515,171],{"href":172},": code on every read and write.",[827,1518,1519,1521],{},[488,1520,1030],{"href":308},": archives for seeds and imports.",[827,1523,1524,1527,1528,490],{},[488,1525,1526],{"href":324},"Configuration reference",": every option of ",[500,1529,876],{},[1531,1532,1533],"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 .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}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}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);}",{"title":498,"searchDepth":528,"depth":528,"links":1535},[1536,1537,1538,1539,1540,1541],{"id":731,"depth":528,"text":732},{"id":765,"depth":528,"text":879},{"id":1038,"depth":528,"text":778},{"id":1053,"depth":528,"text":793},{"id":1215,"depth":528,"text":810},{"id":1508,"depth":528,"text":1509},"Code that runs when the CMS starts, after an import and on unexpected errors.","md",null,{},{"title":311,"description":1542},"xduCZiAa1Gmn9sFzX41Na7cmUP2O4Yh0RTBerWoIrTs",[1549,1551],{"title":307,"path":308,"stem":309,"description":1550,"children":-1},"Save all content in one file and write it back.",{"title":315,"path":316,"stem":317,"description":1552,"children":-1},"What a deploy changes in the database, and how to change fields without losing content.",1795884688636]