[{"data":1,"prerenderedAt":2092},["ShallowReactive",2],{"navigation_docs":3,"-docs-guide-frameworks-other-frameworks":478,"-docs-guide-frameworks-other-frameworks-surround":2087},[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":380,"body":480,"description":2081,"extension":2082,"links":2083,"meta":2084,"navigation":599,"path":381,"seo":2085,"stem":382,"__hash__":2086},"docs\u002Fdocs\u002F2.guide\u002F1.frameworks\u002F5.other-frameworks.md",{"type":481,"value":482,"toc":2073},"minimark",[483,500,505,508,524,528,554,853,866,870,880,1723,1736,1740,1746,1807,1813,1870,1911,1915,1921,2015,2028,2043,2047,2069],[484,485,486,487,491,492,495,496,499],"p",{},"Tenon works with any server that can hand a web ",[488,489,490],"code",{},"Request"," to a function and send back its ",[488,493,494],{},"Response",". You route the API, serve the admin page and register the types yourself. Vite apps get the admin build from ",[488,497,498],{},"tenonAdmin()",".",[501,502,504],"h2",{"id":503},"before-you-start","Before you start",[484,506,507],{},"You need:",[509,510,511,515],"ul",{},[512,513,514],"li",{},"A server runtime, like Node, Bun or Deno. The admin and the API are server routes, so a static host cannot run them.",[512,516,517,520,521,499],{},[488,518,519],{},"tenon.config.ts"," at the project root. See ",[522,523,28],"a",{"href":29},[501,525,527],{"id":526},"route-the-api","Route the API",[484,529,530,531,534,535,538,539,542,543,546,547,538,550,553],{},"Send every request for ",[488,532,533],{},"\u002F_tenon\u002F*",", ",[488,536,537],{},"\u002Fsitemap.xml"," and ",[488,540,541],{},"\u002Frobots.txt"," to ",[488,544,545],{},"cms.fetch(request)",". Pass every method, not only ",[488,548,549],{},"GET",[488,551,552],{},"POST",":",[555,556,562],"pre",{"className":557,"code":558,"filename":559,"language":560,"meta":561,"style":561},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import cms from \".\u002Ftenon.config\";\n\nconst seoPaths = [\"\u002Fsitemap.xml\", \"\u002Frobots.txt\"];\n\nexport default {\n  fetch(request: Request) {\n    const { pathname } = new URL(request.url);\n    if (pathname.startsWith(\"\u002F_tenon\u002F\") || seoPaths.includes(pathname)) {\n      return cms.fetch(request);\n    }\n    \u002F\u002F The routes of your own app go here.\n    return new Response(\"Not found\", { status: 404 });\n  },\n};\n","server.ts","ts","",[488,563,564,594,601,637,642,654,679,717,767,789,795,802,841,847],{"__ignoreMap":561},[565,566,569,573,577,580,584,588,591],"span",{"class":567,"line":568},"line",1,[565,570,572],{"class":571},"s7zQu","import",[565,574,576],{"class":575},"sTEyZ"," cms ",[565,578,579],{"class":571},"from",[565,581,583],{"class":582},"sMK4o"," \"",[565,585,587],{"class":586},"sfazB",".\u002Ftenon.config",[565,589,590],{"class":582},"\"",[565,592,593],{"class":582},";\n",[565,595,597],{"class":567,"line":596},2,[565,598,600],{"emptyLinePlaceholder":599},true,"\n",[565,602,604,608,611,614,617,619,621,623,626,628,630,632,635],{"class":567,"line":603},3,[565,605,607],{"class":606},"spNyl","const",[565,609,610],{"class":575}," seoPaths ",[565,612,613],{"class":582},"=",[565,615,616],{"class":575}," [",[565,618,590],{"class":582},[565,620,537],{"class":586},[565,622,590],{"class":582},[565,624,625],{"class":582},",",[565,627,583],{"class":582},[565,629,541],{"class":586},[565,631,590],{"class":582},[565,633,634],{"class":575},"]",[565,636,593],{"class":582},[565,638,640],{"class":567,"line":639},4,[565,641,600],{"emptyLinePlaceholder":599},[565,643,645,648,651],{"class":567,"line":644},5,[565,646,647],{"class":571},"export",[565,649,650],{"class":571}," default",[565,652,653],{"class":582}," {\n",[565,655,657,661,664,668,670,674,677],{"class":567,"line":656},6,[565,658,660],{"class":659},"swJcz","  fetch",[565,662,663],{"class":582},"(",[565,665,667],{"class":666},"sHdIc","request",[565,669,553],{"class":582},[565,671,673],{"class":672},"sBMFI"," Request",[565,675,676],{"class":582},")",[565,678,653],{"class":582},[565,680,682,685,688,691,694,697,700,704,706,708,710,713,715],{"class":567,"line":681},7,[565,683,684],{"class":606},"    const",[565,686,687],{"class":582}," {",[565,689,690],{"class":575}," pathname",[565,692,693],{"class":582}," }",[565,695,696],{"class":582}," =",[565,698,699],{"class":582}," new",[565,701,703],{"class":702},"s2Zo4"," URL",[565,705,663],{"class":659},[565,707,667],{"class":575},[565,709,499],{"class":582},[565,711,712],{"class":575},"url",[565,714,676],{"class":659},[565,716,593],{"class":582},[565,718,720,723,726,729,731,734,736,738,741,743,746,749,752,754,757,759,761,764],{"class":567,"line":719},8,[565,721,722],{"class":571},"    if",[565,724,725],{"class":659}," (",[565,727,728],{"class":575},"pathname",[565,730,499],{"class":582},[565,732,733],{"class":702},"startsWith",[565,735,663],{"class":659},[565,737,590],{"class":582},[565,739,740],{"class":586},"\u002F_tenon\u002F",[565,742,590],{"class":582},[565,744,745],{"class":659},") ",[565,747,748],{"class":582},"||",[565,750,751],{"class":575}," seoPaths",[565,753,499],{"class":582},[565,755,756],{"class":702},"includes",[565,758,663],{"class":659},[565,760,728],{"class":575},[565,762,763],{"class":659},")) ",[565,765,766],{"class":582},"{\n",[565,768,770,773,776,778,781,783,785,787],{"class":567,"line":769},9,[565,771,772],{"class":571},"      return",[565,774,775],{"class":575}," cms",[565,777,499],{"class":582},[565,779,780],{"class":702},"fetch",[565,782,663],{"class":659},[565,784,667],{"class":575},[565,786,676],{"class":659},[565,788,593],{"class":582},[565,790,792],{"class":567,"line":791},10,[565,793,794],{"class":582},"    }\n",[565,796,798],{"class":567,"line":797},11,[565,799,801],{"class":800},"sHwdD","    \u002F\u002F The routes of your own app go here.\n",[565,803,805,808,810,813,815,817,820,822,824,826,829,831,835,837,839],{"class":567,"line":804},12,[565,806,807],{"class":571},"    return",[565,809,699],{"class":582},[565,811,812],{"class":702}," Response",[565,814,663],{"class":659},[565,816,590],{"class":582},[565,818,819],{"class":586},"Not found",[565,821,590],{"class":582},[565,823,625],{"class":582},[565,825,687],{"class":582},[565,827,828],{"class":659}," status",[565,830,553],{"class":582},[565,832,834],{"class":833},"sbssI"," 404",[565,836,693],{"class":582},[565,838,676],{"class":659},[565,840,593],{"class":582},[565,842,844],{"class":567,"line":843},13,[565,845,846],{"class":582},"  },\n",[565,848,850],{"class":567,"line":849},14,[565,851,852],{"class":582},"};\n",[484,854,855,856,858,859,861,862,499],{},"Leave out ",[488,857,537],{}," or ",[488,860,541],{}," when your app serves them itself. See ",[522,863,865],{"href":864},"\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Fpages-and-seo#sitemap-and-robotstxt","Sitemap and robots.txt",[501,867,869],{"id":868},"serve-the-admin","Serve the admin",[484,871,872,873,534,876,879],{},"The admin is a page at ",[488,874,875],{},"admin.path",[488,877,878],{},"\u002Fadmin"," by default. Serve it for that path and every path below it.",[881,882,883,1250],"tabs",{},[884,885,887,896,990,999,1237],"tabs-item",{"label":886},"With Vite",[484,888,889,890,892,893,553],{},"Add ",[488,891,498],{}," to the Vite config. It builds the admin and exposes its page as ",[488,894,895],{},"#tenon\u002Fadmin-html",[555,897,900],{"className":557,"code":898,"filename":899,"language":560,"meta":561,"style":561},"import { tenonAdmin } from \"tenoncms\u002Fvite\";\nimport { defineConfig } from \"vite\";\n\nexport default defineConfig({\n  plugins: [tenonAdmin()],\n});\n","vite.config.ts",[488,901,902,925,947,951,963,981],{"__ignoreMap":561},[565,903,904,906,908,911,913,916,918,921,923],{"class":567,"line":568},[565,905,572],{"class":571},[565,907,687],{"class":582},[565,909,910],{"class":575}," tenonAdmin",[565,912,693],{"class":582},[565,914,915],{"class":571}," from",[565,917,583],{"class":582},[565,919,920],{"class":586},"tenoncms\u002Fvite",[565,922,590],{"class":582},[565,924,593],{"class":582},[565,926,927,929,931,934,936,938,940,943,945],{"class":567,"line":596},[565,928,572],{"class":571},[565,930,687],{"class":582},[565,932,933],{"class":575}," defineConfig",[565,935,693],{"class":582},[565,937,915],{"class":571},[565,939,583],{"class":582},[565,941,942],{"class":586},"vite",[565,944,590],{"class":582},[565,946,593],{"class":582},[565,948,949],{"class":567,"line":603},[565,950,600],{"emptyLinePlaceholder":599},[565,952,953,955,957,959,961],{"class":567,"line":639},[565,954,647],{"class":571},[565,956,650],{"class":571},[565,958,933],{"class":702},[565,960,663],{"class":575},[565,962,766],{"class":582},[565,964,965,968,970,972,975,978],{"class":567,"line":644},[565,966,967],{"class":659},"  plugins",[565,969,553],{"class":582},[565,971,616],{"class":575},[565,973,974],{"class":702},"tenonAdmin",[565,976,977],{"class":575},"()]",[565,979,980],{"class":582},",\n",[565,982,983,986,988],{"class":567,"line":656},[565,984,985],{"class":582},"}",[565,987,676],{"class":575},[565,989,593],{"class":582},[484,991,992,993,996,997,553],{},"Return the page from your server. ",[488,994,995],{},"cms.adminPath"," holds ",[488,998,875],{},[555,1000,1002],{"className":557,"code":1001,"filename":559,"language":560,"meta":561,"style":561},"import html from \"#tenon\u002Fadmin-html\";\nimport cms from \".\u002Ftenon.config\";\n\nconst admin = cms.adminPath!;\n\nexport default {\n  fetch(request: Request) {\n    const { pathname } = new URL(request.url);\n    if (pathname === admin || pathname.startsWith(`${admin}\u002F`)) {\n      return new Response(html, { headers: { \"content-type\": \"text\u002Fhtml; charset=utf-8\" } });\n    }\n    return cms.fetch(request);\n  },\n};\n",[488,1003,1004,1021,1037,1041,1060,1064,1072,1088,1116,1159,1207,1211,1229,1233],{"__ignoreMap":561},[565,1005,1006,1008,1011,1013,1015,1017,1019],{"class":567,"line":568},[565,1007,572],{"class":571},[565,1009,1010],{"class":575}," html ",[565,1012,579],{"class":571},[565,1014,583],{"class":582},[565,1016,895],{"class":586},[565,1018,590],{"class":582},[565,1020,593],{"class":582},[565,1022,1023,1025,1027,1029,1031,1033,1035],{"class":567,"line":596},[565,1024,572],{"class":571},[565,1026,576],{"class":575},[565,1028,579],{"class":571},[565,1030,583],{"class":582},[565,1032,587],{"class":586},[565,1034,590],{"class":582},[565,1036,593],{"class":582},[565,1038,1039],{"class":567,"line":603},[565,1040,600],{"emptyLinePlaceholder":599},[565,1042,1043,1045,1048,1050,1052,1054,1057],{"class":567,"line":639},[565,1044,607],{"class":606},[565,1046,1047],{"class":575}," admin ",[565,1049,613],{"class":582},[565,1051,775],{"class":575},[565,1053,499],{"class":582},[565,1055,1056],{"class":575},"adminPath",[565,1058,1059],{"class":582},"!;\n",[565,1061,1062],{"class":567,"line":644},[565,1063,600],{"emptyLinePlaceholder":599},[565,1065,1066,1068,1070],{"class":567,"line":656},[565,1067,647],{"class":571},[565,1069,650],{"class":571},[565,1071,653],{"class":582},[565,1073,1074,1076,1078,1080,1082,1084,1086],{"class":567,"line":681},[565,1075,660],{"class":659},[565,1077,663],{"class":582},[565,1079,667],{"class":666},[565,1081,553],{"class":582},[565,1083,673],{"class":672},[565,1085,676],{"class":582},[565,1087,653],{"class":582},[565,1089,1090,1092,1094,1096,1098,1100,1102,1104,1106,1108,1110,1112,1114],{"class":567,"line":719},[565,1091,684],{"class":606},[565,1093,687],{"class":582},[565,1095,690],{"class":575},[565,1097,693],{"class":582},[565,1099,696],{"class":582},[565,1101,699],{"class":582},[565,1103,703],{"class":702},[565,1105,663],{"class":659},[565,1107,667],{"class":575},[565,1109,499],{"class":582},[565,1111,712],{"class":575},[565,1113,676],{"class":659},[565,1115,593],{"class":582},[565,1117,1118,1120,1122,1124,1127,1130,1133,1135,1137,1139,1141,1144,1147,1149,1152,1155,1157],{"class":567,"line":769},[565,1119,722],{"class":571},[565,1121,725],{"class":659},[565,1123,728],{"class":575},[565,1125,1126],{"class":582}," ===",[565,1128,1129],{"class":575}," admin",[565,1131,1132],{"class":582}," ||",[565,1134,690],{"class":575},[565,1136,499],{"class":582},[565,1138,733],{"class":702},[565,1140,663],{"class":659},[565,1142,1143],{"class":582},"`${",[565,1145,1146],{"class":575},"admin",[565,1148,985],{"class":582},[565,1150,1151],{"class":586},"\u002F",[565,1153,1154],{"class":582},"`",[565,1156,763],{"class":659},[565,1158,766],{"class":582},[565,1160,1161,1163,1165,1167,1169,1172,1174,1176,1179,1181,1183,1185,1188,1190,1192,1194,1197,1199,1201,1203,1205],{"class":567,"line":791},[565,1162,772],{"class":571},[565,1164,699],{"class":582},[565,1166,812],{"class":702},[565,1168,663],{"class":659},[565,1170,1171],{"class":575},"html",[565,1173,625],{"class":582},[565,1175,687],{"class":582},[565,1177,1178],{"class":659}," headers",[565,1180,553],{"class":582},[565,1182,687],{"class":582},[565,1184,583],{"class":582},[565,1186,1187],{"class":659},"content-type",[565,1189,590],{"class":582},[565,1191,553],{"class":582},[565,1193,583],{"class":582},[565,1195,1196],{"class":586},"text\u002Fhtml; charset=utf-8",[565,1198,590],{"class":582},[565,1200,693],{"class":582},[565,1202,693],{"class":582},[565,1204,676],{"class":659},[565,1206,593],{"class":582},[565,1208,1209],{"class":567,"line":797},[565,1210,794],{"class":582},[565,1212,1213,1215,1217,1219,1221,1223,1225,1227],{"class":567,"line":804},[565,1214,807],{"class":571},[565,1216,775],{"class":575},[565,1218,499],{"class":582},[565,1220,780],{"class":702},[565,1222,663],{"class":659},[565,1224,667],{"class":575},[565,1226,676],{"class":659},[565,1228,593],{"class":582},[565,1230,1231],{"class":567,"line":843},[565,1232,846],{"class":582},[565,1234,1235],{"class":567,"line":849},[565,1236,852],{"class":582},[484,1238,1239,1241,1242,1245,1246,1249],{},[488,1240,498],{}," throws when the config sets ",[488,1243,1244],{},"admin: false",". Its options are on the ",[522,1247,372],{"href":1248},"\u002Fdocs\u002Fguide\u002Fframeworks\u002Ftanstack-start#tenonadmin-options"," page.",[884,1251,1253,1256,1508,1566,1574,1595,1717],{"label":1252},"Without Vite",[484,1254,1255],{},"Serve a page with an empty element, and mount the admin into it with a script that your bundler builds:",[555,1257,1261],{"className":1258,"code":1259,"filename":1260,"language":1171,"meta":561,"style":561},"language-html shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003C!doctype html>\n\u003Chtml lang=\"en\">\n  \u003Chead>\n    \u003Cmeta charset=\"utf-8\" \u002F>\n    \u003Cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1\" \u002F>\n    \u003Cmeta name=\"robots\" content=\"noindex, nofollow\" \u002F>\n    \u003Ctitle>Admin\u003C\u002Ftitle>\n    \u003Cscript type=\"module\" src=\"\u002Fadmin.js\">\u003C\u002Fscript>\n  \u003C\u002Fhead>\n  \u003Cbody>\n    \u003Cdiv id=\"admin\">\u003C\u002Fdiv>\n  \u003C\u002Fbody>\n\u003C\u002Fhtml>\n","admin.html",[488,1262,1263,1277,1298,1308,1331,1363,1393,1412,1450,1459,1468,1492,1500],{"__ignoreMap":561},[565,1264,1265,1268,1271,1274],{"class":567,"line":568},[565,1266,1267],{"class":582},"\u003C!",[565,1269,1270],{"class":659},"doctype",[565,1272,1273],{"class":606}," html",[565,1275,1276],{"class":582},">\n",[565,1278,1279,1282,1284,1287,1289,1291,1294,1296],{"class":567,"line":596},[565,1280,1281],{"class":582},"\u003C",[565,1283,1171],{"class":659},[565,1285,1286],{"class":606}," lang",[565,1288,613],{"class":582},[565,1290,590],{"class":582},[565,1292,1293],{"class":586},"en",[565,1295,590],{"class":582},[565,1297,1276],{"class":582},[565,1299,1300,1303,1306],{"class":567,"line":603},[565,1301,1302],{"class":582},"  \u003C",[565,1304,1305],{"class":659},"head",[565,1307,1276],{"class":582},[565,1309,1310,1313,1316,1319,1321,1323,1326,1328],{"class":567,"line":639},[565,1311,1312],{"class":582},"    \u003C",[565,1314,1315],{"class":659},"meta",[565,1317,1318],{"class":606}," charset",[565,1320,613],{"class":582},[565,1322,590],{"class":582},[565,1324,1325],{"class":586},"utf-8",[565,1327,590],{"class":582},[565,1329,1330],{"class":582}," \u002F>\n",[565,1332,1333,1335,1337,1340,1342,1344,1347,1349,1352,1354,1356,1359,1361],{"class":567,"line":644},[565,1334,1312],{"class":582},[565,1336,1315],{"class":659},[565,1338,1339],{"class":606}," name",[565,1341,613],{"class":582},[565,1343,590],{"class":582},[565,1345,1346],{"class":586},"viewport",[565,1348,590],{"class":582},[565,1350,1351],{"class":606}," content",[565,1353,613],{"class":582},[565,1355,590],{"class":582},[565,1357,1358],{"class":586},"width=device-width, initial-scale=1",[565,1360,590],{"class":582},[565,1362,1330],{"class":582},[565,1364,1365,1367,1369,1371,1373,1375,1378,1380,1382,1384,1386,1389,1391],{"class":567,"line":656},[565,1366,1312],{"class":582},[565,1368,1315],{"class":659},[565,1370,1339],{"class":606},[565,1372,613],{"class":582},[565,1374,590],{"class":582},[565,1376,1377],{"class":586},"robots",[565,1379,590],{"class":582},[565,1381,1351],{"class":606},[565,1383,613],{"class":582},[565,1385,590],{"class":582},[565,1387,1388],{"class":586},"noindex, nofollow",[565,1390,590],{"class":582},[565,1392,1330],{"class":582},[565,1394,1395,1397,1400,1403,1405,1408,1410],{"class":567,"line":681},[565,1396,1312],{"class":582},[565,1398,1399],{"class":659},"title",[565,1401,1402],{"class":582},">",[565,1404,219],{"class":575},[565,1406,1407],{"class":582},"\u003C\u002F",[565,1409,1399],{"class":659},[565,1411,1276],{"class":582},[565,1413,1414,1416,1419,1422,1424,1426,1429,1431,1434,1436,1438,1441,1443,1446,1448],{"class":567,"line":719},[565,1415,1312],{"class":582},[565,1417,1418],{"class":659},"script",[565,1420,1421],{"class":606}," type",[565,1423,613],{"class":582},[565,1425,590],{"class":582},[565,1427,1428],{"class":586},"module",[565,1430,590],{"class":582},[565,1432,1433],{"class":606}," src",[565,1435,613],{"class":582},[565,1437,590],{"class":582},[565,1439,1440],{"class":586},"\u002Fadmin.js",[565,1442,590],{"class":582},[565,1444,1445],{"class":582},">\u003C\u002F",[565,1447,1418],{"class":659},[565,1449,1276],{"class":582},[565,1451,1452,1455,1457],{"class":567,"line":769},[565,1453,1454],{"class":582},"  \u003C\u002F",[565,1456,1305],{"class":659},[565,1458,1276],{"class":582},[565,1460,1461,1463,1466],{"class":567,"line":791},[565,1462,1302],{"class":582},[565,1464,1465],{"class":659},"body",[565,1467,1276],{"class":582},[565,1469,1470,1472,1475,1478,1480,1482,1484,1486,1488,1490],{"class":567,"line":797},[565,1471,1312],{"class":582},[565,1473,1474],{"class":659},"div",[565,1476,1477],{"class":606}," id",[565,1479,613],{"class":582},[565,1481,590],{"class":582},[565,1483,1146],{"class":586},[565,1485,590],{"class":582},[565,1487,1445],{"class":582},[565,1489,1474],{"class":659},[565,1491,1276],{"class":582},[565,1493,1494,1496,1498],{"class":567,"line":804},[565,1495,1454],{"class":582},[565,1497,1465],{"class":659},[565,1499,1276],{"class":582},[565,1501,1502,1504,1506],{"class":567,"line":843},[565,1503,1407],{"class":582},[565,1505,1171],{"class":659},[565,1507,1276],{"class":582},[555,1509,1512],{"className":557,"code":1510,"filename":1511,"language":560,"meta":561,"style":561},"import { mountAdmin } from \"tenoncms\u002Fadmin\u002Fmount\";\n\nmountAdmin(\"#admin\", \"\u002Fadmin\");\n","src\u002Fadmin.ts",[488,1513,1514,1536,1540],{"__ignoreMap":561},[565,1515,1516,1518,1520,1523,1525,1527,1529,1532,1534],{"class":567,"line":568},[565,1517,572],{"class":571},[565,1519,687],{"class":582},[565,1521,1522],{"class":575}," mountAdmin",[565,1524,693],{"class":582},[565,1526,915],{"class":571},[565,1528,583],{"class":582},[565,1530,1531],{"class":586},"tenoncms\u002Fadmin\u002Fmount",[565,1533,590],{"class":582},[565,1535,593],{"class":582},[565,1537,1538],{"class":567,"line":596},[565,1539,600],{"emptyLinePlaceholder":599},[565,1541,1542,1545,1547,1549,1552,1554,1556,1558,1560,1562,1564],{"class":567,"line":603},[565,1543,1544],{"class":702},"mountAdmin",[565,1546,663],{"class":575},[565,1548,590],{"class":582},[565,1550,1551],{"class":586},"#admin",[565,1553,590],{"class":582},[565,1555,625],{"class":582},[565,1557,583],{"class":582},[565,1559,878],{"class":586},[565,1561,590],{"class":582},[565,1563,676],{"class":575},[565,1565,593],{"class":582},[484,1567,1568,1569,1571,1572,499],{},"The second argument is ",[488,1570,875],{},". It defaults to ",[488,1573,878],{},[484,1575,1576,1577,1580,1581,1587,1588,1591,1592,1594],{},"Browser modules (",[488,1578,1579],{},".client.ts",") need a Tenon Vite plugin. Without Vite, name your admin code with ",[522,1582,1584],{"href":1583},"\u002Fdocs\u002Fcore\u002Fcustomization#clientref",[488,1585,1586],{},"clientRef()",", and pass the list of modules to ",[488,1589,1590],{},"mountAdmin()"," yourself. Each key is the exact string of a ",[488,1593,1586],{}," call:",[555,1596,1598],{"className":557,"code":1597,"filename":1511,"language":560,"meta":561,"style":561},"import { mountAdmin } from \"tenoncms\u002Fadmin\u002Fmount\";\n\nmountAdmin(\"#admin\", \"\u002Fadmin\", null, {\n  \".\u002Fsrc\u002Fadmin\u002Fcolor.ts#mountColor\": () => import(\".\u002Fadmin\u002Fcolor\").then((m) => m.mountColor),\n});\n",[488,1599,1600,1620,1624,1651,1709],{"__ignoreMap":561},[565,1601,1602,1604,1606,1608,1610,1612,1614,1616,1618],{"class":567,"line":568},[565,1603,572],{"class":571},[565,1605,687],{"class":582},[565,1607,1522],{"class":575},[565,1609,693],{"class":582},[565,1611,915],{"class":571},[565,1613,583],{"class":582},[565,1615,1531],{"class":586},[565,1617,590],{"class":582},[565,1619,593],{"class":582},[565,1621,1622],{"class":567,"line":596},[565,1623,600],{"emptyLinePlaceholder":599},[565,1625,1626,1628,1630,1632,1634,1636,1638,1640,1642,1644,1646,1649],{"class":567,"line":603},[565,1627,1544],{"class":702},[565,1629,663],{"class":575},[565,1631,590],{"class":582},[565,1633,1551],{"class":586},[565,1635,590],{"class":582},[565,1637,625],{"class":582},[565,1639,583],{"class":582},[565,1641,878],{"class":586},[565,1643,590],{"class":582},[565,1645,625],{"class":582},[565,1647,1648],{"class":582}," null,",[565,1650,653],{"class":582},[565,1652,1653,1656,1659,1661,1663,1666,1669,1672,1674,1676,1679,1681,1683,1685,1688,1690,1692,1695,1697,1699,1702,1704,1707],{"class":567,"line":639},[565,1654,1655],{"class":582},"  \"",[565,1657,1658],{"class":659},".\u002Fsrc\u002Fadmin\u002Fcolor.ts#mountColor",[565,1660,590],{"class":582},[565,1662,553],{"class":582},[565,1664,1665],{"class":582}," ()",[565,1667,1668],{"class":606}," =>",[565,1670,1671],{"class":582}," import",[565,1673,663],{"class":575},[565,1675,590],{"class":582},[565,1677,1678],{"class":586},".\u002Fadmin\u002Fcolor",[565,1680,590],{"class":582},[565,1682,676],{"class":575},[565,1684,499],{"class":582},[565,1686,1687],{"class":702},"then",[565,1689,663],{"class":575},[565,1691,663],{"class":582},[565,1693,1694],{"class":666},"m",[565,1696,676],{"class":582},[565,1698,1668],{"class":606},[565,1700,1701],{"class":575}," m",[565,1703,499],{"class":582},[565,1705,1706],{"class":575},"mountColor)",[565,1708,980],{"class":582},[565,1710,1711,1713,1715],{"class":567,"line":644},[565,1712,985],{"class":582},[565,1714,676],{"class":575},[565,1716,593],{"class":582},[484,1718,1719,1720,499],{},"The third argument is the URL of a favicon, or ",[488,1721,1722],{},"null",[484,1724,1725,1726,1728,1729,1731,1732,499],{},"To ship no admin at all, set ",[488,1727,1244],{}," in ",[488,1730,519],{},". The API keeps working. See ",[522,1733,1735],{"href":1734},"\u002Fdocs\u002Fcore\u002Fcustomization\u002Fadmin#without-the-admin","Without the admin",[501,1737,1739],{"id":1738},"read-content-and-preview","Read content and preview",[484,1741,1742,1743,1745],{},"Server code imports the instance from ",[488,1744,519],{},". For pages, read as the user of the request, so editors see drafts in the preview:",[555,1747,1749],{"className":557,"code":1748,"language":560,"meta":561,"style":561},"const tenon = await cms.withSession(request);\nconst posts = await tenon.find(\"posts\");\n",[488,1750,1751,1775],{"__ignoreMap":561},[565,1752,1753,1755,1758,1760,1763,1765,1767,1770,1773],{"class":567,"line":568},[565,1754,607],{"class":606},[565,1756,1757],{"class":575}," tenon ",[565,1759,613],{"class":582},[565,1761,1762],{"class":571}," await",[565,1764,775],{"class":575},[565,1766,499],{"class":582},[565,1768,1769],{"class":702},"withSession",[565,1771,1772],{"class":575},"(request)",[565,1774,593],{"class":582},[565,1776,1777,1779,1782,1784,1786,1789,1791,1794,1796,1798,1801,1803,1805],{"class":567,"line":596},[565,1778,607],{"class":606},[565,1780,1781],{"class":575}," posts ",[565,1783,613],{"class":582},[565,1785,1762],{"class":571},[565,1787,1788],{"class":575}," tenon",[565,1790,499],{"class":582},[565,1792,1793],{"class":702},"find",[565,1795,663],{"class":575},[565,1797,590],{"class":582},[565,1799,1800],{"class":586},"posts",[565,1802,590],{"class":582},[565,1804,676],{"class":575},[565,1806,593],{"class":582},[484,1808,1809,1810,553],{},"On the pages, start the live preview once in the browser. Any bundler builds ",[488,1811,1812],{},"tenoncms\u002Fpreview",[555,1814,1817],{"className":557,"code":1815,"filename":1816,"language":560,"meta":561,"style":561},"import { preview } from \"tenoncms\u002Fpreview\";\n\npreview({ admin: \"\u002Fadmin\" });\n","src\u002Fsite.ts",[488,1818,1819,1840,1844],{"__ignoreMap":561},[565,1820,1821,1823,1825,1828,1830,1832,1834,1836,1838],{"class":567,"line":568},[565,1822,572],{"class":571},[565,1824,687],{"class":582},[565,1826,1827],{"class":575}," preview",[565,1829,693],{"class":582},[565,1831,915],{"class":571},[565,1833,583],{"class":582},[565,1835,1812],{"class":586},[565,1837,590],{"class":582},[565,1839,593],{"class":582},[565,1841,1842],{"class":567,"line":596},[565,1843,600],{"emptyLinePlaceholder":599},[565,1845,1846,1849,1851,1854,1856,1858,1860,1862,1864,1866,1868],{"class":567,"line":603},[565,1847,1848],{"class":702},"preview",[565,1850,663],{"class":575},[565,1852,1853],{"class":582},"{",[565,1855,1129],{"class":659},[565,1857,553],{"class":582},[565,1859,583],{"class":582},[565,1861,878],{"class":586},[565,1863,590],{"class":582},[565,1865,693],{"class":582},[565,1867,676],{"class":575},[565,1869,593],{"class":582},[509,1871,1872,1893,1899],{},[512,1873,1874,1875,1878,1879,1882,1883,858,1886,1889,1890,499],{},"Mark what a field renders with ",[488,1876,1877],{},"edit()",". In Vue and React, ",[488,1880,1881],{},"useDraft()"," from ",[488,1884,1885],{},"tenoncms\u002Fpreview\u002Fvue",[488,1887,1888],{},"tenoncms\u002Fpreview\u002Freact"," merges unsaved changes. See ",[522,1891,1892],{"href":193},"Live preview",[512,1894,1895,1896,1898],{},"Without a Tenon Vite plugin, the admin bar skips items with browser code from ",[488,1897,1586],{},". Links and menus still show.",[512,1900,1901,1902,538,1905,1908,1909,499],{},"The components of ",[488,1903,1904],{},"tenoncms\u002Fvue",[488,1906,1907],{},"tenoncms\u002Freact"," work in any app. See ",[522,1910,184],{"href":185},[501,1912,1914],{"id":1913},"types-and-jobs","Types and jobs",[484,1916,1917,1918,553],{},"Register the types of your CMS in ",[488,1919,1920],{},"tsconfig.json",[555,1922,1926],{"className":1923,"code":1924,"filename":1920,"language":1925,"meta":561,"style":561},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"compilerOptions\": {\n    \"types\": [\"tenoncms\u002Fregister\"],\n    \"paths\": { \"#tenon\u002Fconfig\": [\".\u002Ftenon.config.ts\"] }\n  }\n}\n","json",[488,1927,1928,1932,1945,1969,2005,2010],{"__ignoreMap":561},[565,1929,1930],{"class":567,"line":568},[565,1931,766],{"class":582},[565,1933,1934,1936,1939,1941,1943],{"class":567,"line":596},[565,1935,1655],{"class":582},[565,1937,1938],{"class":606},"compilerOptions",[565,1940,590],{"class":582},[565,1942,553],{"class":582},[565,1944,653],{"class":582},[565,1946,1947,1950,1953,1955,1957,1959,1961,1964,1966],{"class":567,"line":603},[565,1948,1949],{"class":582},"    \"",[565,1951,1952],{"class":672},"types",[565,1954,590],{"class":582},[565,1956,553],{"class":582},[565,1958,616],{"class":582},[565,1960,590],{"class":582},[565,1962,1963],{"class":586},"tenoncms\u002Fregister",[565,1965,590],{"class":582},[565,1967,1968],{"class":582},"],\n",[565,1970,1971,1973,1976,1978,1980,1982,1984,1987,1989,1991,1993,1995,1998,2000,2002],{"class":567,"line":639},[565,1972,1949],{"class":582},[565,1974,1975],{"class":672},"paths",[565,1977,590],{"class":582},[565,1979,553],{"class":582},[565,1981,687],{"class":582},[565,1983,583],{"class":582},[565,1985,1986],{"class":833},"#tenon\u002Fconfig",[565,1988,590],{"class":582},[565,1990,553],{"class":582},[565,1992,616],{"class":582},[565,1994,590],{"class":582},[565,1996,1997],{"class":586},".\u002Ftenon.config.ts",[565,1999,590],{"class":582},[565,2001,634],{"class":582},[565,2003,2004],{"class":582}," }\n",[565,2006,2007],{"class":567,"line":644},[565,2008,2009],{"class":582},"  }\n",[565,2011,2012],{"class":567,"line":656},[565,2013,2014],{"class":582},"}\n",[484,2016,2017,2018,1882,2021,2024,2025,2027],{},"This types ",[488,2019,2020],{},"createClient()",[488,2022,2023],{},"tenoncms\u002Fclient"," without a type argument, and ",[488,2026,895],{}," with Vite.",[484,2029,2030,2031,2034,2035,2037,2038,2040,2041,499],{},"Due jobs run only when something calls ",[488,2032,2033],{},"cms.jobs.run()",". ",[488,2036,498],{}," runs them every minute when the app builds with Nitro. Otherwise, call ",[488,2039,2033],{}," every minute yourself, or call the clock route from a cron service. See ",[522,2042,281],{"href":282},[501,2044,2046],{"id":2045},"related-resources","Related resources",[509,2048,2049,2054,2059,2064],{},[512,2050,2051,2053],{},[522,2052,32],{"href":33},": the routes, the admin and the CLI, and how Vite fits in.",[512,2055,2056,2058],{},[522,2057,376],{"href":377},": the same pieces in a project with no pages.",[512,2060,2061,2063],{},[522,2062,372],{"href":373},": a full Vite setup with route files.",[512,2065,2066,2068],{},[522,2067,341],{"href":342},": every route of the API.",[2070,2071,2072],"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 .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 .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}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 .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}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 .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}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":561,"searchDepth":596,"depth":596,"links":2074},[2075,2076,2077,2078,2079,2080],{"id":503,"depth":596,"text":504},{"id":526,"depth":596,"text":527},{"id":868,"depth":596,"text":869},{"id":1738,"depth":596,"text":1739},{"id":1913,"depth":596,"text":1914},{"id":2045,"depth":596,"text":2046},"Connect Tenon to any server that speaks Request and Response. Vite-based frameworks get the smoothest setup.","md",null,{},{"title":380,"description":2081},"e0tCmKbHb3YYd74vZ_oADnldPvMBE1BBltkFLTuKUus",[2088,2090],{"title":376,"path":377,"stem":378,"description":2089,"children":-1},"Run Tenon headless, with the API and the admin and no site.",{"title":50,"path":385,"stem":386,"description":2091,"children":-1},"What a deployed Tenon site needs, and which guide to follow.",1795884703310]