[{"data":1,"prerenderedAt":2395},["ShallowReactive",2],{"navigation_docs":3,"-docs-core-reference-configuration":478,"-docs-core-reference-configuration-surround":2390},[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":28,"body":480,"description":2384,"extension":2385,"links":2386,"meta":2387,"navigation":580,"path":324,"seo":2388,"stem":325,"__hash__":2389},"docs\u002Fdocs\u002F1.core\u002F8.reference\u002F1.configuration.md",{"type":481,"value":482,"toc":2346},"minimark",[483,507,685,690,696,705,715,720,727,749,754,761,771,776,784,803,807,816,829,867,879,883,889,899,936,941,948,953,978,981,985,989,997,1000,1100,1105,1109,1115,1121,1126,1132,1157,1167,1172,1179,1221,1224,1342,1349,1354,1365,1388,1398,1402,1414,1469,1473,1482,1499,1697,1702,1707,1745,1749,1754,1760,1781,1786,1791,1820,1824,1829,1837,1870,1875,1882,1908,1912,1919,1924,1928,1934,1999,2003,2007,2016,2023,2109,2114,2121,2144,2148,2155,2164,2289,2293,2298,2323,2327,2342],[484,485,486,490,491,494,495,498,499,502,503,506],"p",{},[487,488,489],"code",{},"defineCms()"," takes one object. Only ",[487,492,493],{},"database"," and ",[487,496,497],{},"secret"," are required. Each entry below links to the page that explains the option in depth. For what ",[487,500,501],{},"tenon.config.ts"," is and how Tenon reads it, see ",[504,505,28],"a",{"href":29},".",[508,509,514],"pre",{"className":510,"code":511,"filename":501,"language":512,"meta":513,"style":513},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { defineCms } from \"tenoncms\";\nimport { sqlite } from \"tenoncms\u002Fsqlite\";\n\nexport default defineCms({\n  database: sqlite(\".\u002Fcms.db\"),\n  secret: process.env.TENON_SECRET!,\n  collections: {\n    \u002F\u002F ...\n  },\n});\n","ts","",[487,515,516,552,575,582,600,627,651,662,669,675],{"__ignoreMap":513},[517,518,521,525,529,533,536,539,542,546,549],"span",{"class":519,"line":520},"line",1,[517,522,524],{"class":523},"s7zQu","import",[517,526,528],{"class":527},"sMK4o"," {",[517,530,532],{"class":531},"sTEyZ"," defineCms",[517,534,535],{"class":527}," }",[517,537,538],{"class":523}," from",[517,540,541],{"class":527}," \"",[517,543,545],{"class":544},"sfazB","tenoncms",[517,547,548],{"class":527},"\"",[517,550,551],{"class":527},";\n",[517,553,555,557,559,562,564,566,568,571,573],{"class":519,"line":554},2,[517,556,524],{"class":523},[517,558,528],{"class":527},[517,560,561],{"class":531}," sqlite",[517,563,535],{"class":527},[517,565,538],{"class":523},[517,567,541],{"class":527},[517,569,570],{"class":544},"tenoncms\u002Fsqlite",[517,572,548],{"class":527},[517,574,551],{"class":527},[517,576,578],{"class":519,"line":577},3,[517,579,581],{"emptyLinePlaceholder":580},true,"\n",[517,583,585,588,591,594,597],{"class":519,"line":584},4,[517,586,587],{"class":523},"export",[517,589,590],{"class":523}," default",[517,592,532],{"class":593},"s2Zo4",[517,595,596],{"class":531},"(",[517,598,599],{"class":527},"{\n",[517,601,603,607,610,612,614,616,619,621,624],{"class":519,"line":602},5,[517,604,606],{"class":605},"swJcz","  database",[517,608,609],{"class":527},":",[517,611,561],{"class":593},[517,613,596],{"class":531},[517,615,548],{"class":527},[517,617,618],{"class":544},".\u002Fcms.db",[517,620,548],{"class":527},[517,622,623],{"class":531},")",[517,625,626],{"class":527},",\n",[517,628,630,633,635,638,640,643,645,648],{"class":519,"line":629},6,[517,631,632],{"class":605},"  secret",[517,634,609],{"class":527},[517,636,637],{"class":531}," process",[517,639,506],{"class":527},[517,641,642],{"class":531},"env",[517,644,506],{"class":527},[517,646,647],{"class":531},"TENON_SECRET",[517,649,650],{"class":527},"!,\n",[517,652,654,657,659],{"class":519,"line":653},7,[517,655,656],{"class":605},"  collections",[517,658,609],{"class":527},[517,660,661],{"class":527}," {\n",[517,663,665],{"class":519,"line":664},8,[517,666,668],{"class":667},"sHwdD","    \u002F\u002F ...\n",[517,670,672],{"class":519,"line":671},9,[517,673,674],{"class":527},"  },\n",[517,676,678,681,683],{"class":519,"line":677},10,[517,679,680],{"class":527},"}",[517,682,623],{"class":531},[517,684,551],{"class":527},[686,687,689],"h2",{"id":688},"content","Content",[691,692,694],"h3",{"id":693},"collections",[487,695,693],{},[484,697,698,701,702,506],{},[487,699,700],{},"Record\u003Cstring, Collection>",". Default: ",[487,703,704],{},"{}",[484,706,707,708,711,712,506],{},"The collections, keyed by name. The name ",[487,709,710],{},"media"," is reserved for the media library. See ",[504,713,714],{"href":42},"Collections and globals",[691,716,718],{"id":717},"globals",[487,719,717],{},[484,721,722,701,725,506],{},[487,723,724],{},"Record\u003Cstring, Global>",[487,726,704],{},[484,728,729,730,734,735,738,739,494,742,745,746,506],{},"The globals, keyed by name. While their ",[504,731,733],{"href":732},"#settings","settings"," are on, ",[487,736,737],{},"general",", ",[487,740,741],{},"seo",[487,743,744],{},"translations"," are taken. See ",[504,747,714],{"href":748},"\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fcollections-and-globals#globals",[691,750,752],{"id":751},"blocks",[487,753,751],{},[484,755,756,701,759,506],{},[487,757,758],{},"Record\u003Cstring, Block>",[487,760,704],{},[484,762,763,764,770],{},"Shared blocks. A ",[504,765,767,769],{"href":766},"\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fblocks#nested-blocks",[487,768,751],{}," field"," names them by key instead of defining them. A block MAY name itself, so items nest to any depth.",[691,772,774],{"id":773},"presets",[487,775,773],{},[484,777,778,701,781,506],{},[487,779,780],{},"Preset[]",[487,782,783],{},"[]",[484,785,786,787,738,790,494,793,796,797,800,801,506],{},"Ready-made collections, globals and blocks, like ",[487,788,789],{},"pagesPreset()",[487,791,792],{},"menuPreset()",[487,794,795],{},"stringsPreset()"," from ",[487,798,799],{},"tenoncms\u002Fpresets",". They merge after your own entries and before the plugins. A duplicate name throws. See ",[504,802,120],{"href":121},[691,804,805],{"id":733},[487,806,733],{},[484,808,809,701,812,494,814,506],{},[487,810,811],{},"SettingsOptions | false",[487,813,737],{},[487,815,741],{},[484,817,818,819,822,823,826,827,506],{},"The globals on the admin's ",[820,821,134],"strong",{}," page. ",[487,824,825],{},"false"," removes all of them. See ",[504,828,134],{"href":135},[830,831,832,844,855],"field-group",{},[833,834,836,837,840,841,843],"field",{"name":737,"type":835},"Global | false","Site title, tagline and favicon. A ",[487,838,839],{},"Global"," replaces it, ",[487,842,825],{}," removes it.",[833,845,846,847,850,851,840,853,843],{"name":741,"type":835},"Default title, description, image and ",[487,848,849],{},"noindex",". A ",[487,852,839],{},[487,854,825],{},[833,856,857,858,864,865,843],{"name":744,"type":825},"Added with ",[504,859,861],{"href":860},"#localization",[487,862,863],{},"localization"," when a localized entry has list fields. It holds one switch per entry for keeping the structure of lists the same in every language. ",[487,866,825],{},[484,868,869,870,872,873,875,876,878],{},"Without media, ",[487,871,737],{}," has no favicon and ",[487,874,741],{}," has no image. With ",[487,877,863],{},", both are localized.",[691,880,881],{"id":863},[487,882,863],{},[484,884,885,888],{},[487,886,887],{},"LocalizationOptions",". Default: off.",[484,890,891,892,895,896,506],{},"Content in several languages. Without it, a ",[487,893,894],{},"localized"," option throws at startup. See ",[504,897,167],{"href":898},"\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Flocalization#options",[830,900,901,907,918,925],{},[833,902,906],{"name":903,"type":904,":required":905},"locales","string[]","true","The locale codes. MUST NOT be empty or hold duplicates.",[833,908,911,912,915,916,506],{"name":909,"type":910,":required":905},"defaultLocale","string","The locale of a read without ",[487,913,914],{},"locale",", and the target of the fallback. MUST be one of ",[487,917,903],{},[833,919,922,923,506],{"name":920,"type":921},"fallback","boolean","A missing value or locale reads as the default locale's. Default: ",[487,924,905],{},[833,926,929,930,932,933,506],{"name":927,"type":928},"routing","{ prefix: \"except-default\" | \"always\" } | false","How URLs carry the locale. ",[487,931,825],{}," leaves routing to your app. Default: ",[487,934,935],{},"{ prefix: \"except-default\" }",[691,937,939],{"id":938},"populate",[487,940,938],{},[484,942,943,701,946,506],{},[487,944,945],{},"PopulateOptions",[487,947,704],{},[484,949,950,951,506],{},"Defaults for reads that resolve relations. See ",[504,952,112],{"href":113},[830,954,955,967],{},[833,956,959,960,963,964,506],{"name":957,"type":958},"depth","number","How many hops ",[487,961,962],{},"populate: true"," resolves. It also sets the depth of the result types. Default: ",[487,965,966],{},"2",[833,968,970,971,974,975,977],{"name":969,"type":958},"maxDepth","The deepest population a request over HTTP may ask for. The local API has no limit. Default: ",[487,972,973],{},"5",". ",[487,976,957],{}," MUST NOT be larger.",[979,980],"hr",{},[686,982,984],{"id":983},"server","Server",[691,986,987],{"id":493},[487,988,493],{},[484,990,991,974,994],{},[487,992,993],{},"DatabaseOptions",[820,995,996],{},"Required.",[484,998,999],{},"The database. Create it with an adapter:",[1001,1002,1003,1019],"table",{},[1004,1005,1006],"thead",{},[1007,1008,1009,1013,1016],"tr",{},[1010,1011,1012],"th",{},"Adapter",[1010,1014,1015],{},"Import",[1010,1017,1018],{},"Database",[1020,1021,1022,1040,1055,1070,1085],"tbody",{},[1007,1023,1024,1030,1034],{},[1025,1026,1027],"td",{},[487,1028,1029],{},"sqlite()",[1025,1031,1032],{},[487,1033,570],{},[1025,1035,1036,1037],{},"A SQLite file, with ",[487,1038,1039],{},"node:sqlite",[1007,1041,1042,1047,1052],{},[1025,1043,1044],{},[487,1045,1046],{},"libsql()",[1025,1048,1049],{},[487,1050,1051],{},"tenoncms\u002Flibsql",[1025,1053,1054],{},"libSQL and Turso",[1007,1056,1057,1062,1067],{},[1025,1058,1059],{},[487,1060,1061],{},"postgres()",[1025,1063,1064],{},[487,1065,1066],{},"tenoncms\u002Fpostgres",[1025,1068,1069],{},"Postgres",[1007,1071,1072,1077,1082],{},[1025,1073,1074],{},[487,1075,1076],{},"pglite()",[1025,1078,1079],{},[487,1080,1081],{},"tenoncms\u002Fpglite",[1025,1083,1084],{},"PGlite",[1007,1086,1087,1092,1097],{},[1025,1088,1089],{},[487,1090,1091],{},"durableObject()",[1025,1093,1094],{},[487,1095,1096],{},"tenoncms\u002Fcloudflare",[1025,1098,1099],{},"SQLite in a Durable Object",[484,1101,1102,1103,506],{},"A missing URL or path fails at startup. See ",[504,1104,406],{"href":407},[691,1106,1107],{"id":497},[487,1108,497],{},[484,1110,1111,974,1113],{},[487,1112,910],{},[820,1114,996],{},[484,1116,1117,1118,506],{},"Signs sessions. It MUST have at least 32 characters, also in development. Read it from an environment variable. See ",[504,1119,28],{"href":1120},"\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fconfiguration#environment-variables",[691,1122,1124],{"id":1123},"site",[487,1125,1123],{},[484,1127,1128,1131],{},[487,1129,1130],{},"SiteOptions",". Default: none.",[830,1133,1134,1150],{},[833,1135,1137,1138,1141,1142,1145,1146,1149],{"name":1136,"type":910},"url","The public origin of your site, like ",[487,1139,1140],{},"https:\u002F\u002Fexample.com",". The sitemap, ",[487,1143,1144],{},"robots.txt"," and preview URLs use it. It is also the default of ",[487,1147,1148],{},"auth.baseURL"," and of the CORS origin. MUST be an http(s) origin without a path. Default: the origin of each request.",[833,1151,1153,1154,506],{"name":1152,"type":910},"name","The name of the site. The admin, the admin bar, emails and passkeys show it. Default: ",[487,1155,1156],{},"\"tenoncms\"",[484,1158,1159,1160,494,1163,506],{},"See ",[504,1161,28],{"href":1162},"\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fconfiguration#site-url",[504,1164,1166],{"href":1165},"\u002Fdocs\u002Fcore\u002Fcustomization\u002Fadmin#branding","Branding",[691,1168,1170],{"id":1169},"auth",[487,1171,1169],{},[484,1173,1174,701,1177,506],{},[487,1175,1176],{},"AuthOptions",[487,1178,704],{},[484,1180,1181,1182,1188,1189,738,1191,494,1193,1196,1197,1200,1201,738,1204,738,1207,494,1210,1213,1214,1217,1218,506],{},"The options of ",[504,1183,1187],{"href":1184,"rel":1185},"https:\u002F\u002Fwww.better-auth.com\u002Fdocs\u002Freference\u002Foptions",[1186],"nofollow","better-auth",", passed through. Tenon sets ",[487,1190,493],{},[487,1192,497],{},[487,1194,1195],{},"basePath"," (",[487,1198,1199],{},"\u002F_tenon\u002Fauth",") itself, and the models ",[487,1202,1203],{},"user",[487,1205,1206],{},"session",[487,1208,1209],{},"account",[487,1211,1212],{},"verification"," MUST NOT set ",[487,1215,1216],{},"modelName",". See ",[504,1219,201],{"href":1220},"\u002Fdocs\u002Fcore\u002Fusers-and-access\u002Fauthentication#auth-options",[484,1222,1223],{},"Tenon changes these defaults:",[1001,1225,1226,1236],{},[1004,1227,1228],{},[1007,1229,1230,1233],{},[1010,1231,1232],{},"Key",[1010,1234,1235],{},"Default in Tenon",[1020,1237,1238,1251,1263,1274,1294,1306,1322],{},[1007,1239,1240,1245],{},[1025,1241,1242],{},[487,1243,1244],{},"baseURL",[1025,1246,1247,1250],{},[487,1248,1249],{},"site.url",", then better-auth's environment variables, then localhost in development",[1007,1252,1253,1258],{},[1025,1254,1255],{},[487,1256,1257],{},"appName",[1025,1259,1260],{},[487,1261,1262],{},"site.name",[1007,1264,1265,1270],{},[1025,1266,1267],{},[487,1268,1269],{},"emailAndPassword.enabled",[1025,1271,1272],{},[487,1273,905],{},[1007,1275,1276,1284],{},[1025,1277,1278,738,1281],{},[487,1279,1280],{},"emailAndPassword.sendResetPassword",[487,1282,1283],{},"emailVerification.sendVerificationEmail",[1025,1285,1286,1287,1293],{},"The templates of ",[504,1288,1290],{"href":1289},"#email",[487,1291,1292],{},"email",", when it is set",[1007,1295,1296,1301],{},[1025,1297,1298],{},[487,1299,1300],{},"rateLimit.storage",[1025,1302,1303],{},[487,1304,1305],{},"\"database\"",[1007,1307,1308,1313],{},[1025,1309,1310],{},[487,1311,1312],{},"user.additionalFields",[1025,1314,1315,1316,494,1319],{},"Also has ",[487,1317,1318],{},"language",[487,1320,1321],{},"timezone",[1007,1323,1324,1329],{},[1025,1325,1326],{},[487,1327,1328],{},"plugins",[1025,1330,1331,1332,738,1335,738,1338,1341],{},"Tenon adds ",[487,1333,1334],{},"admin()",[487,1336,1337],{},"apiKey()",[487,1339,1340],{},"bearer()"," and a few of its own, unless you add them",[484,1343,1344,1345,1348],{},"The first user always gets the role ",[487,1346,1347],{},"admin",". At least one sign-in method MUST be on.",[691,1350,1352],{"id":1351},"roles",[487,1353,1351],{},[484,1355,1356,1359,1360,494,1362,506],{},[487,1357,1358],{},"Record\u003Cstring, RoleOptions>",". Default: only ",[487,1361,1347],{},[487,1363,1364],{},"editor",[484,1366,1367,1368,1372,1373,738,1376,494,1379,1382,1383,1385,1386,506],{},"More roles for ",[504,1369,1371],{"href":1370},"\u002Fdocs\u002Fcore\u002Fusers-and-access\u002Faccess-control#users-and-roles","access rules",". A name MUST use ",[487,1374,1375],{},"a-z",[487,1377,1378],{},"0-9",[487,1380,1381],{},"-",", and MUST NOT be ",[487,1384,1347],{}," or ",[487,1387,1364],{},[830,1389,1390,1394],{},[833,1391,1393],{"name":1392,"type":108},"label","The name in the admin. Default: the key.",[833,1395,1397],{"name":1396,"type":108},"description","Shown where an admin picks a role.",[691,1399,1400],{"id":1292},[487,1401,1292],{},[484,1403,1404,1407,1408,1411,1412,506],{},[487,1405,1406],{},"EmailOptions",". Default: off. Without it, ",[487,1409,1410],{},"cms.email.send()"," throws. See ",[504,1413,249],{"href":250},[830,1415,1416,1435,1442],{},[833,1417,1420,1421,738,1426,1431,1432,506],{"name":1418,"type":1419,":required":905},"adapter","EmailAdapter","The transport: ",[504,1422,1423],{"href":256},[487,1424,1425],{},"smtp()",[504,1427,1428],{"href":260},[487,1429,1430],{},"cloudflareEmail()"," or a ",[504,1433,1434],{"href":264},"custom adapter",[833,1436,1438,1439,506],{"name":1437,"type":910,":required":905},"from","The sender of every message, like ",[487,1440,1441],{},"My Site \u003Chello@example.com>",[833,1443,1446,1447,738,1450,738,1453,738,1456,738,1459,494,1462,1217,1465,506],{"name":1444,"type":1445},"templates","Partial\u003CEmailTemplates>","Replacements for ",[487,1448,1449],{},"resetPassword",[487,1451,1452],{},"verifyEmail",[487,1454,1455],{},"invite",[487,1457,1458],{},"signInLink",[487,1460,1461],{},"magicLink",[487,1463,1464],{},"emailOtp",[504,1466,1468],{"href":1467},"\u002Fdocs\u002Fcore\u002Foperations\u002Femail#change-the-built-in-emails","Change the built-in emails",[691,1470,1471],{"id":710},[487,1472,710],{},[484,1474,1475,1478,1479,506],{},[487,1476,1477],{},"MediaOptions | boolean",". Default: local files in ",[487,1480,1481],{},".uploads",[484,1483,1484,1485,494,1488,1491,1492,1494,1495,1411,1497,506],{},"The media library, and with it ",[487,1486,1487],{},"image",[487,1489,1490],{},"file"," fields. ",[487,1493,825],{}," turns it off. On Cloudflare Workers, or in a read-only folder, the default is off and ",[487,1496,905],{},[504,1498,116],{"href":117},[830,1500,1501,1522,1530,1538,1660,1669],{},[833,1502,1505,1506,738,1509,738,1512,796,1515,1518,1519,506],{"name":1503,"type":1504,":required":905},"storage","Storage","Where files go: ",[487,1507,1508],{},"local()",[487,1510,1511],{},"s3()",[487,1513,1514],{},"r2()",[487,1516,1517],{},"tenoncms\u002Fmedia\u002F*",", or your own. See ",[504,1520,1521],{"href":411},"Media storage",[833,1523,1525,1526,1529],{"name":1524,"type":958},"maxSize","The largest file, in bytes. Default: ",[487,1527,1528],{},"100 * 1024 ** 2"," (100 MB).",[833,1531,1533,1534,1537],{"name":1532,"type":904},"accept","The allowed MIME types. ",[487,1535,1536],{},"image\u002F*"," works. Default: all.",[833,1539,1542,1551],{"name":1540,"type":1541},"images","ImagesOptions | false",[484,1543,1544,1545,1217,1547,506],{},"Responsive image variants. Default: ",[487,1546,825],{},[504,1548,1550],{"href":1549},"\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fmedia#responsive-images","Responsive images",[1001,1552,1553,1565],{},[1004,1554,1555],{},[1007,1556,1557,1559,1562],{},[1010,1558,1232],{},[1010,1560,1561],{},"Type",[1010,1563,1564],{},"Default",[1020,1566,1567,1582,1598,1614,1631,1646],{},[1007,1568,1569,1574,1580],{},[1025,1570,1571],{},[487,1572,1573],{},"provider",[1025,1575,1576,1579],{},[487,1577,1578],{},"ImageProvider",", required",[1025,1581],{},[1007,1583,1584,1589,1593],{},[1025,1585,1586],{},[487,1587,1588],{},"format",[1025,1590,1591],{},[487,1592,910],{},[1025,1594,1595],{},[487,1596,1597],{},"\"webp\"",[1007,1599,1600,1605,1609],{},[1025,1601,1602],{},[487,1603,1604],{},"quality",[1025,1606,1607],{},[487,1608,958],{},[1025,1610,1611],{},[487,1612,1613],{},"85",[1007,1615,1616,1621,1626],{},[1025,1617,1618],{},[487,1619,1620],{},"sizes",[1025,1622,1623],{},[487,1624,1625],{},"number[]",[1025,1627,1628],{},[487,1629,1630],{},"[320, 640, 1024, 1536, 1920]",[1007,1632,1633,1637,1642],{},[1025,1634,1635],{},[487,1636,773],{},[1025,1638,1639],{},[487,1640,1641],{},"Record\u003Cstring, Modifiers>",[1025,1643,1644],{},[487,1645,704],{},[1007,1647,1648,1652,1657],{},[1025,1649,1650],{},[487,1651,1524],{},[1025,1653,1654,1656],{},[487,1655,958],{},", in bytes",[1025,1658,1659],{},"50 MB. Bigger images get no variants",[833,1661,1664,1665,1668],{"name":1662,"type":1663},"access","Access","The access rules of the library. ",[487,1666,1667],{},"read"," also guards the file and image URLs. Default: everyone reads, signed-in users write.",[833,1670,1673,738,1676,738,1679,738,1682,738,1685,738,1688,738,1691,494,1694,506],{"name":1671,"type":1672},"hooks","MediaHooks",[487,1674,1675],{},"beforeUpload",[487,1677,1678],{},"afterUpload",[487,1680,1681],{},"beforeChange",[487,1683,1684],{},"afterChange",[487,1686,1687],{},"beforeMove",[487,1689,1690],{},"afterMove",[487,1692,1693],{},"beforeDelete",[487,1695,1696],{},"afterDelete",[691,1698,1700],{"id":1699},"cors",[487,1701,1699],{},[484,1703,1704,888],{},[487,1705,1706],{},"CorsOptions",[484,1708,1709,1710,1713,1714,1717,1718,738,1720,1717,1723,738,1725,1717,1728,494,1731,1717,1734,1737,1738,1385,1740,1217,1742,506],{},"CORS for pages on another origin, with the options of Hono's ",[487,1711,1712],{},"cors()",". Your keys replace the defaults key by key: ",[487,1715,1716],{},"origin"," is ",[487,1719,1249],{},[487,1721,1722],{},"credentials",[487,1724,905],{},[487,1726,1727],{},"allowMethods",[487,1729,1730],{},"[\"GET\", \"POST\"]",[487,1732,1733],{},"allowHeaders",[487,1735,1736],{},"[\"content-type\"]",". It covers the read, preview, localization and admin bar routes. It needs ",[487,1739,1716],{},[487,1741,1249],{},[504,1743,163],{"href":1744},"\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fheadless#allow-more-origins",[686,1746,1748],{"id":1747},"site-output","Site output",[691,1750,1752],{"id":1751},"sitemap",[487,1753,1751],{},[484,1755,1756,1759],{},[487,1757,1758],{},"SitemapOptions | false",". Default: on.",[484,1761,1762,1763,1766,1767,974,1770,1773,1774,1776,1777,506],{},"Serves ",[487,1764,1765],{},"\u002Fsitemap.xml"," with the published documents of every collection that has a ",[487,1768,1769],{},"permalink",[487,1771,1772],{},"entries: ({ cms, entries }) => entries"," adds, drops or changes entries. ",[487,1775,825],{}," turns it off. See ",[504,1778,1780],{"href":1779},"\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Fpages-and-seo#sitemap-and-robotstxt","Sitemap and robots.txt",[691,1782,1784],{"id":1783},"robots",[487,1785,1783],{},[484,1787,1788,1759],{},[487,1789,1790],{},"RobotsOptions | false",[484,1792,1762,1793,1796,1797,494,1800,1803,1804,1807,1808,1810,1811,974,1813,1816,1817,1819],{},[487,1794,1795],{},"\u002Frobots.txt",". By default it allows ",[487,1798,1799],{},"\u002F",[487,1801,1802],{},"\u002F_tenon\u002Fmedia\u002F",", disallows ",[487,1805,1806],{},"\u002F_tenon\u002F",", and links the sitemap. With the SEO setting ",[487,1809,849],{},", it disallows ",[487,1812,1799],{},[487,1814,1815],{},"rules: ({ cms, rules }) => rules"," changes the groups. ",[487,1818,825],{}," turns it off.",[686,1821,1823],{"id":1822},"automation","Automation",[691,1825,1827],{"id":1826},"jobs",[487,1828,1826],{},[484,1830,1831,1834,1835,506],{},[487,1832,1833],{},"JobsOptions",". Default: none. See ",[504,1836,267],{"href":268},[830,1838,1839,1851,1858],{},[833,1840,1843,1844,1847,1848,506],{"name":1841,"type":1842},"tasks","Record\u003Cstring, Task>","Tasks from ",[487,1845,1846],{},"defineTask()",", by name. A name MUST NOT start with ",[487,1849,1850],{},"tenon:",[833,1852,1855,1856,506],{"name":1853,"type":1854},"scheduledTasks","Record\u003Cstring, string[]>","Cron patterns with five fields, mapped to task names. See ",[504,1857,277],{"href":278},[833,1859,1860,1861,1865,1866,1869],{"name":497,"type":910},"Opens the ",[504,1862,1864],{"href":1863},"\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Fclock#the-clock-route","clock route"," for ",[487,1867,1868],{},"Authorization: Bearer \u003Csecret>",". Without it, the route does not exist.",[691,1871,1873],{"id":1872},"webhooks",[487,1874,1872],{},[484,1876,1877,701,1880,506],{},[487,1878,1879],{},"Record\u003Cstring, Webhook>",[487,1881,704],{},[484,1883,1884,1885,738,1887,738,1889,738,1891,738,1894,738,1897,738,1900,494,1902,1217,1905,506],{},"Outgoing webhooks, by name: ",[487,1886,1136],{},[487,1888,693],{},[487,1890,717],{},[487,1892,1893],{},"events",[487,1895,1896],{},"payload",[487,1898,1899],{},"debounce",[487,1901,497],{},[487,1903,1904],{},"headers",[504,1906,295],{"href":1907},"\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks\u002Fsend-webhooks#options",[691,1909,1910],{"id":1671},[487,1911,1671],{},[484,1913,1914,701,1917,506],{},[487,1915,1916],{},"RootHooks",[487,1918,704],{},[484,1920,1921,1922,506],{},"Hooks for every collection and global. They run after the hooks of the entry and of the plugins. See ",[504,1923,171],{"href":172},[686,1925,1927],{"id":1926},"lifecycle","Lifecycle",[484,1929,1930,1931,506],{},"All four take one function. See ",[504,1932,1933],{"href":312},"Lifecycle hooks",[1001,1935,1936,1946],{},[1004,1937,1938],{},[1007,1939,1940,1943],{},[1010,1941,1942],{},"Option",[1010,1944,1945],{},"Runs",[1020,1947,1948,1958,1971,1985],{},[1007,1949,1950,1955],{},[1025,1951,1952],{},[487,1953,1954],{},"seed",[1025,1956,1957],{},"Once, on a database without documents and globals",[1007,1959,1960,1965],{},[1025,1961,1962],{},[487,1963,1964],{},"onInit",[1025,1966,1967,1968,1970],{},"On every start, after ",[487,1969,1954],{},", before the first request",[1007,1972,1973,1978],{},[1025,1974,1975],{},[487,1976,1977],{},"afterImport",[1025,1979,1980,1981,1984],{},"After ",[487,1982,1983],{},"cms.import()"," commits",[1007,1986,1987,1992],{},[1025,1988,1989],{},[487,1990,1991],{},"afterError",[1025,1993,1994,1995,1385,1997],{},"After an unexpected error in a request, a job, ",[487,1996,1954],{},[487,1998,1964],{},[686,2000,2002],{"id":2001},"admin-and-plugins","Admin and plugins",[691,2004,2005],{"id":1347},[487,2006,1347],{},[484,2008,2009,2012,2013,506],{},[487,2010,2011],{},"AdminOptions | false",". Default: the admin at ",[487,2014,2015],{},"\u002Fadmin",[484,2017,2018,2020,2021,506],{},[487,2019,825],{}," serves no admin, no admin bar and no device login for the CLI. See ",[504,2022,219],{"href":220},[830,2024,2025,2044,2049,2054,2064,2068,2080,2088,2097],{},[833,2026,2028,2029,494,2031,2034,2035,2037,2038,701,2041,506],{"name":2027,"type":910},"path","Where the admin opens. Letters, digits, ",[487,2030,1381],{},[487,2032,2033],{},"_",". MUST NOT be ",[487,2036,1799],{}," or start with ",[487,2039,2040],{},"\u002F_tenon",[487,2042,2043],{},"\"\u002Fadmin\"",[833,2045,2048],{"name":2046,"type":2047},"logo","Themed | { header, login }","The wide logo. Default: the icon and the site name.",[833,2050,2053],{"name":2051,"type":2052},"icon","Themed","The square icon of the collapsed sidebar.",[833,2055,2057,2058,2060,2061,2063],{"name":2056,"type":2052},"favicon","Default: ",[487,2059,2051],{},", then the ",[487,2062,2056],{}," of your site, then Tenon's icon.",[833,2065,2067],{"name":710,"type":2066},"{ label, nav, pageHeader }","The label and the menu place of the media library.",[833,2069,2072,2073,2076,2077,506],{"name":2070,"type":2071},"fields","Record\u003Cstring, FieldRegistration>","Inputs for ",[487,2074,2075],{},"custom:\u003Ckey>"," fields. See ",[504,2078,2079],{"href":224},"Custom fields",[833,2081,2084,2085,506],{"name":2082,"type":2083},"pages","Record\u003Cstring, PageRegistration>","Pages of your own. See ",[504,2086,2087],{"href":228},"Custom pages and actions",[833,2089,2092,2093,506],{"name":2090,"type":2091},"actions","Record\u003Cstring, ActionRegistration>","Buttons that run code on the server. Default access: admins. See ",[504,2094,2096],{"href":2095},"\u002Fdocs\u002Fcore\u002Fcustomization\u002Fcustom-pages-and-actions#actions","Actions",[833,2098,2101,2102,1217,2105,506],{"name":2099,"type":2100},"adminBar","{ position, items } | false","The bar on your site for signed-in editors. Default position: ",[487,2103,2104],{},"\"bottom-center\"",[504,2106,2108],{"href":2107},"\u002Fdocs\u002Fcore\u002Fcustomization\u002Fadmin#admin-bar","Admin bar",[691,2110,2112],{"id":2111},"richtext",[487,2113,2111],{},[484,2115,2116,701,2119,506],{},[487,2117,2118],{},"{ extensions?: Record\u003Cstring, RichtextRegistration> }",[487,2120,704],{},[484,2122,2123,2124,2126,2127,2130,2131,2134,2135,796,2138,1217,2141,506],{},"Tiptap extensions for ",[487,2125,2111],{}," fields, keyed by the name that a field's ",[487,2128,2129],{},"allowed"," lists. Each has a ",[487,2132,2133],{},"schema"," for the server and a ",[487,2136,2137],{},"client",[487,2139,2140],{},"clientRef()",[504,2142,2143],{"href":236},"Rich text extensions",[691,2145,2146],{"id":1328},[487,2147,1328],{},[484,2149,2150,701,2153,506],{},[487,2151,2152],{},"Plugin[]",[487,2154,783],{},[484,2156,2157,2158,2161,2162,506],{},"Plugins from ",[487,2159,2160],{},"definePlugin()",". They merge in list order, before your own hooks. See ",[504,2163,239],{"href":240},[1001,2165,2166,2175],{},[1004,2167,2168],{},[1007,2169,2170,2172],{},[1010,2171,1232],{},[1010,2173,2174],{},"What it adds",[1020,2176,2177,2186,2197,2209,2223,2235,2248,2264,2275],{},[1007,2178,2179,2183],{},[1025,2180,2181],{},[487,2182,1152],{},[1025,2184,2185],{},"Required. Prefixes the routes and the task names",[1007,2187,2188,2194],{},[1025,2189,2190,738,2192],{},[487,2191,693],{},[487,2193,717],{},[1025,2195,2196],{},"Entries, like your own",[1007,2198,2199,2206],{},[1025,2200,2201,738,2203],{},[487,2202,1671],{},[487,2204,2205],{},"mediaHooks",[1025,2207,2208],{},"Hooks for every entry, and for the media library",[1007,2210,2211,2216],{},[1025,2212,2213],{},[487,2214,2215],{},"routes",[1025,2217,2218,2219,2222],{},"Routes under ",[487,2220,2221],{},"\u002F_tenon\u002F\u003Cname>"," that need a session",[1007,2224,2225,2230],{},[1025,2226,2227],{},[487,2228,2229],{},"publicRoutes",[1025,2231,2218,2232,2234],{},[487,2233,2221],{}," without a session",[1007,2236,2237,2245],{},[1025,2238,2239,738,2242],{},[487,2240,2241],{},"middleware",[487,2243,2244],{},"publicMiddleware",[1025,2246,2247],{},"Middleware for requests with a session, or for all",[1007,2249,2250,2254],{},[1025,2251,2252],{},[487,2253,1826],{},[1025,2255,2256,494,2258,2260,2261],{},[487,2257,1841],{},[487,2259,1853],{},". Names start with ",[487,2262,2263],{},"\u003Cname>:",[1007,2265,2266,2272],{},[1025,2267,2268,738,2270],{},[487,2269,2111],{},[487,2271,1347],{},[1025,2273,2274],{},"Editor extensions and admin parts",[1007,2276,2277,2287],{},[1025,2278,2279,738,2281,738,2283,738,2285],{},[487,2280,1954],{},[487,2282,1964],{},[487,2284,1977],{},[487,2286,1991],{},[1025,2288,1933],{},[686,2290,2292],{"id":2291},"startup-checks","Startup checks",[484,2294,2295,2297],{},[487,2296,489],{}," checks the config when it loads, and throws before the first request.",[2299,2300,2301,2320],"ul",{},[2302,2303,2304,738,2306,738,2308,738,2310,494,2312,2315,2316,2319],"li",{},[487,2305,497],{},[487,2307,1249],{},[487,2309,1699],{},[487,2311,493],{},[487,2313,2314],{},"media.storage"," are checked together. The error ",[487,2317,2318],{},"tenoncms: invalid config"," lists every problem among them.",[2302,2321,2322],{},"Every other check throws on its own problem, like an unknown role in an access rule, a cron pattern without five fields or a webhook URL that is not http(s).",[686,2324,2326],{"id":2325},"related-resources","Related resources",[2299,2328,2329,2334],{},[2302,2330,2331,2333],{},[504,2332,28],{"href":29},": the file, the environment variables and the routes Tenon adds.",[2302,2335,2336,2338,2339,506],{},[504,2337,333],{"href":334},": every method of ",[487,2340,2341],{},"cms",[2343,2344,2345],"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 .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}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 .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":513,"searchDepth":554,"depth":554,"links":2347},[2348,2357,2367,2371,2376,2377,2382,2383],{"id":688,"depth":554,"text":689,"children":2349},[2350,2351,2352,2353,2354,2355,2356],{"id":693,"depth":577,"text":693},{"id":717,"depth":577,"text":717},{"id":751,"depth":577,"text":751},{"id":773,"depth":577,"text":773},{"id":733,"depth":577,"text":733},{"id":863,"depth":577,"text":863},{"id":938,"depth":577,"text":938},{"id":983,"depth":554,"text":984,"children":2358},[2359,2360,2361,2362,2363,2364,2365,2366],{"id":493,"depth":577,"text":493},{"id":497,"depth":577,"text":497},{"id":1123,"depth":577,"text":1123},{"id":1169,"depth":577,"text":1169},{"id":1351,"depth":577,"text":1351},{"id":1292,"depth":577,"text":1292},{"id":710,"depth":577,"text":710},{"id":1699,"depth":577,"text":1699},{"id":1747,"depth":554,"text":1748,"children":2368},[2369,2370],{"id":1751,"depth":577,"text":1751},{"id":1783,"depth":577,"text":1783},{"id":1822,"depth":554,"text":1823,"children":2372},[2373,2374,2375],{"id":1826,"depth":577,"text":1826},{"id":1872,"depth":577,"text":1872},{"id":1671,"depth":577,"text":1671},{"id":1926,"depth":554,"text":1927},{"id":2001,"depth":554,"text":2002,"children":2378},[2379,2380,2381],{"id":1347,"depth":577,"text":1347},{"id":2111,"depth":577,"text":2111},{"id":1328,"depth":577,"text":1328},{"id":2291,"depth":554,"text":2292},{"id":2325,"depth":554,"text":2326},"Every option of defineCms(), with its type, its default and the page that explains it.","md",null,{},{"title":28,"description":2384},"TsdXSyckAiV416P4VXUjOYbnYJ-zf1G6hI9fAuZqP4s",[2391,2393],{"title":315,"path":316,"stem":317,"description":2392,"children":-1},"What a deploy changes in the database, and how to change fields without losing content.",{"title":50,"path":328,"stem":329,"description":2394,"children":-1},"The three ways to reach your content.",1795884689867]