[{"data":1,"prerenderedAt":2200},["ShallowReactive",2],{"navigation_docs":3,"-docs-guide-deployment-cloudflare":478,"-docs-guide-deployment-cloudflare-surround":2195},[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":259,"body":480,"description":2189,"extension":2190,"links":2191,"meta":2192,"navigation":784,"path":398,"seo":2193,"stem":399,"__hash__":2194},"docs\u002Fdocs\u002F2.guide\u002F2.deployment\u002F3.cloudflare.md",{"type":481,"value":482,"toc":2173},"minimark",[483,487,492,505,509,513,530,548,552,555,1661,1665,1675,1757,1765,1772,1776,1793,1808,1811,1818,1941,1950,1971,1977,1985,1989,2086,2096,2130,2137,2141,2169],[484,485,486],"p",{},"On Cloudflare, your Astro site runs as a Worker, and the CMS runs in a Durable Object next to it. This page sets up the object, media, email and secrets, and deploys the site.",[488,489,491],"h2",{"id":490},"how-it-runs","How it runs",[484,493,494,495,499,500,504],{},"The CMS lives in one Durable Object, with its own SQLite database. Every request to ",[496,497,498],"code",{},"\u002F_tenon"," and every read from a page goes to that object. Its alarm is also the ",[501,502,503],"a",{"href":282},"job clock",": it wakes when a job is due, with no cron trigger to set up.",[506,507,508],"note",{},"Cloudflare works with Astro only, for now.",[488,510,512],{"id":511},"before-you-start","Before you start",[514,515,516,524],"ul",{},[517,518,519,520,523],"li",{},"A Cloudflare account, and Wrangler signed in: ",[496,521,522],{},"npx wrangler login",".",[517,525,526,527,523],{},"R2 enabled in the Cloudflare dashboard. Without it, the first deploy fails with ",[496,528,529],{},"inherit binding 'MEDIA' is invalid",[484,531,532,533,536,537,540,541,543,544,547],{},"The quickest start is ",[496,534,535],{},"npm create tenoncms@latest"," with ",[538,539,364],"strong",{}," and the target ",[538,542,259],{},". It writes every file below. The Worker is named after the project folder, and its bucket ",[496,545,546],{},"\u003Cname>-media",", so two sites on one account stay apart.",[488,549,551],{"id":550},"set-it-up","Set it up",[484,553,554],{},"To add Tenon to an Astro site on Cloudflare yourself:",[556,557,559,564,688,692,695,1071,1074,1078,1091,1578,1599,1603,1610,1647,1651],"steps",{"level":558},"3",[560,561,563],"h3",{"id":562},"install-the-packages","Install the packages",[565,566,568,609,636,662],"code-group",{"sync":567},"pm",[569,570,576],"pre",{"className":571,"code":572,"filename":573,"language":574,"meta":575,"style":575},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","npm install tenoncms @astrojs\u002Fcloudflare\nnpm install -D wrangler\n","npm","bash","",[496,577,578,596],{"__ignoreMap":575},[579,580,583,586,590,593],"span",{"class":581,"line":582},"line",1,[579,584,573],{"class":585},"sBMFI",[579,587,589],{"class":588},"sfazB"," install",[579,591,592],{"class":588}," tenoncms",[579,594,595],{"class":588}," @astrojs\u002Fcloudflare\n",[579,597,599,601,603,606],{"class":581,"line":598},2,[579,600,573],{"class":585},[579,602,589],{"class":588},[579,604,605],{"class":588}," -D",[579,607,608],{"class":588}," wrangler\n",[569,610,613],{"className":571,"code":611,"filename":612,"language":574,"meta":575,"style":575},"pnpm add tenoncms @astrojs\u002Fcloudflare\npnpm add -D wrangler\n","pnpm",[496,614,615,626],{"__ignoreMap":575},[579,616,617,619,622,624],{"class":581,"line":582},[579,618,612],{"class":585},[579,620,621],{"class":588}," add",[579,623,592],{"class":588},[579,625,595],{"class":588},[579,627,628,630,632,634],{"class":581,"line":598},[579,629,612],{"class":585},[579,631,621],{"class":588},[579,633,605],{"class":588},[579,635,608],{"class":588},[569,637,640],{"className":571,"code":638,"filename":639,"language":574,"meta":575,"style":575},"yarn add tenoncms @astrojs\u002Fcloudflare\nyarn add -D wrangler\n","yarn",[496,641,642,652],{"__ignoreMap":575},[579,643,644,646,648,650],{"class":581,"line":582},[579,645,639],{"class":585},[579,647,621],{"class":588},[579,649,592],{"class":588},[579,651,595],{"class":588},[579,653,654,656,658,660],{"class":581,"line":598},[579,655,639],{"class":585},[579,657,621],{"class":588},[579,659,605],{"class":588},[579,661,608],{"class":588},[569,663,666],{"className":571,"code":664,"filename":665,"language":574,"meta":575,"style":575},"bun add tenoncms @astrojs\u002Fcloudflare\nbun add -D wrangler\n","bun",[496,667,668,678],{"__ignoreMap":575},[579,669,670,672,674,676],{"class":581,"line":582},[579,671,665],{"class":585},[579,673,621],{"class":588},[579,675,592],{"class":588},[579,677,595],{"class":588},[579,679,680,682,684,686],{"class":581,"line":598},[579,681,665],{"class":585},[579,683,621],{"class":588},[579,685,605],{"class":588},[579,687,608],{"class":588},[560,689,691],{"id":690},"configure-astro","Configure Astro",[484,693,694],{},"Use the Cloudflare adapter, and render pages on the server:",[569,696,701],{"className":697,"code":698,"filename":699,"language":700,"meta":575,"style":575},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import cloudflare from \"@astrojs\u002Fcloudflare\";\nimport { defineConfig, envField } from \"astro\u002Fconfig\";\nimport tenonCms from \"tenoncms\u002Fastro\";\n\nexport default defineConfig({\n  output: \"server\",\n  adapter: cloudflare(),\n  \u002F\u002F Tenon keeps its own sessions. Astro's sessions would need a KV namespace.\n  session: false,\n  integrations: [tenonCms()],\n  env: {\n    schema: {\n      TENON_SECRET: envField.string({ context: \"server\", access: \"secret\", min: 32 }),\n      TENON_SITE_URL: envField.string({\n        context: \"server\",\n        access: \"secret\",\n        url: true,\n        optional: true,\n      }),\n    },\n  },\n});\n","astro.config.ts","ts",[496,702,703,729,760,779,786,804,824,840,847,861,880,891,901,964,982,998,1014,1027,1039,1049,1055,1061],{"__ignoreMap":575},[579,704,705,709,713,716,720,723,726],{"class":581,"line":582},[579,706,708],{"class":707},"s7zQu","import",[579,710,712],{"class":711},"sTEyZ"," cloudflare ",[579,714,715],{"class":707},"from",[579,717,719],{"class":718},"sMK4o"," \"",[579,721,722],{"class":588},"@astrojs\u002Fcloudflare",[579,724,725],{"class":718},"\"",[579,727,728],{"class":718},";\n",[579,730,731,733,736,739,742,745,748,751,753,756,758],{"class":581,"line":598},[579,732,708],{"class":707},[579,734,735],{"class":718}," {",[579,737,738],{"class":711}," defineConfig",[579,740,741],{"class":718},",",[579,743,744],{"class":711}," envField",[579,746,747],{"class":718}," }",[579,749,750],{"class":707}," from",[579,752,719],{"class":718},[579,754,755],{"class":588},"astro\u002Fconfig",[579,757,725],{"class":718},[579,759,728],{"class":718},[579,761,763,765,768,770,772,775,777],{"class":581,"line":762},3,[579,764,708],{"class":707},[579,766,767],{"class":711}," tenonCms ",[579,769,715],{"class":707},[579,771,719],{"class":718},[579,773,774],{"class":588},"tenoncms\u002Fastro",[579,776,725],{"class":718},[579,778,728],{"class":718},[579,780,782],{"class":581,"line":781},4,[579,783,785],{"emptyLinePlaceholder":784},true,"\n",[579,787,789,792,795,798,801],{"class":581,"line":788},5,[579,790,791],{"class":707},"export",[579,793,794],{"class":707}," default",[579,796,738],{"class":797},"s2Zo4",[579,799,800],{"class":711},"(",[579,802,803],{"class":718},"{\n",[579,805,807,811,814,816,819,821],{"class":581,"line":806},6,[579,808,810],{"class":809},"swJcz","  output",[579,812,813],{"class":718},":",[579,815,719],{"class":718},[579,817,818],{"class":588},"server",[579,820,725],{"class":718},[579,822,823],{"class":718},",\n",[579,825,827,830,832,835,838],{"class":581,"line":826},7,[579,828,829],{"class":809},"  adapter",[579,831,813],{"class":718},[579,833,834],{"class":797}," cloudflare",[579,836,837],{"class":711},"()",[579,839,823],{"class":718},[579,841,843],{"class":581,"line":842},8,[579,844,846],{"class":845},"sHwdD","  \u002F\u002F Tenon keeps its own sessions. Astro's sessions would need a KV namespace.\n",[579,848,850,853,855,859],{"class":581,"line":849},9,[579,851,852],{"class":809},"  session",[579,854,813],{"class":718},[579,856,858],{"class":857},"sfNiH"," false",[579,860,823],{"class":718},[579,862,864,867,869,872,875,878],{"class":581,"line":863},10,[579,865,866],{"class":809},"  integrations",[579,868,813],{"class":718},[579,870,871],{"class":711}," [",[579,873,874],{"class":797},"tenonCms",[579,876,877],{"class":711},"()]",[579,879,823],{"class":718},[579,881,883,886,888],{"class":581,"line":882},11,[579,884,885],{"class":809},"  env",[579,887,813],{"class":718},[579,889,890],{"class":718}," {\n",[579,892,894,897,899],{"class":581,"line":893},12,[579,895,896],{"class":809},"    schema",[579,898,813],{"class":718},[579,900,890],{"class":718},[579,902,904,907,909,911,913,916,918,921,924,926,928,930,932,934,937,939,941,944,946,948,951,953,957,959,962],{"class":581,"line":903},13,[579,905,906],{"class":809},"      TENON_SECRET",[579,908,813],{"class":718},[579,910,744],{"class":711},[579,912,523],{"class":718},[579,914,915],{"class":797},"string",[579,917,800],{"class":711},[579,919,920],{"class":718},"{",[579,922,923],{"class":809}," context",[579,925,813],{"class":718},[579,927,719],{"class":718},[579,929,818],{"class":588},[579,931,725],{"class":718},[579,933,741],{"class":718},[579,935,936],{"class":809}," access",[579,938,813],{"class":718},[579,940,719],{"class":718},[579,942,943],{"class":588},"secret",[579,945,725],{"class":718},[579,947,741],{"class":718},[579,949,950],{"class":809}," min",[579,952,813],{"class":718},[579,954,956],{"class":955},"sbssI"," 32",[579,958,747],{"class":718},[579,960,961],{"class":711},")",[579,963,823],{"class":718},[579,965,967,970,972,974,976,978,980],{"class":581,"line":966},14,[579,968,969],{"class":809},"      TENON_SITE_URL",[579,971,813],{"class":718},[579,973,744],{"class":711},[579,975,523],{"class":718},[579,977,915],{"class":797},[579,979,800],{"class":711},[579,981,803],{"class":718},[579,983,985,988,990,992,994,996],{"class":581,"line":984},15,[579,986,987],{"class":809},"        context",[579,989,813],{"class":718},[579,991,719],{"class":718},[579,993,818],{"class":588},[579,995,725],{"class":718},[579,997,823],{"class":718},[579,999,1001,1004,1006,1008,1010,1012],{"class":581,"line":1000},16,[579,1002,1003],{"class":809},"        access",[579,1005,813],{"class":718},[579,1007,719],{"class":718},[579,1009,943],{"class":588},[579,1011,725],{"class":718},[579,1013,823],{"class":718},[579,1015,1017,1020,1022,1025],{"class":581,"line":1016},17,[579,1018,1019],{"class":809},"        url",[579,1021,813],{"class":718},[579,1023,1024],{"class":857}," true",[579,1026,823],{"class":718},[579,1028,1030,1033,1035,1037],{"class":581,"line":1029},18,[579,1031,1032],{"class":809},"        optional",[579,1034,813],{"class":718},[579,1036,1024],{"class":857},[579,1038,823],{"class":718},[579,1040,1042,1045,1047],{"class":581,"line":1041},19,[579,1043,1044],{"class":718},"      }",[579,1046,961],{"class":711},[579,1048,823],{"class":718},[579,1050,1052],{"class":581,"line":1051},20,[579,1053,1054],{"class":718},"    },\n",[579,1056,1058],{"class":581,"line":1057},21,[579,1059,1060],{"class":718},"  },\n",[579,1062,1064,1067,1069],{"class":581,"line":1063},22,[579,1065,1066],{"class":718},"}",[579,1068,961],{"class":711},[579,1070,728],{"class":718},[484,1072,1073],{},"The integration detects the adapter and runs the CMS in the object.",[560,1075,1077],{"id":1076},"add-the-cms-object","Add the CMS object",[484,1079,1080,1083,1084,1087,1088,813],{},[496,1081,1082],{},"durableObject()"," is the database. The Worker entry exports the object class, and ",[496,1085,1086],{},"wrangler.jsonc"," binds it as ",[496,1089,1090],{},"CMS",[565,1092,1093,1379,1508],{},[569,1094,1097],{"className":697,"code":1095,"filename":1096,"language":700,"meta":575,"style":575},"import { TENON_SECRET, TENON_SITE_URL } from \"astro:env\u002Fserver\";\nimport { env } from \"cloudflare:workers\";\nimport { defineCms } from \"tenoncms\";\nimport { durableObject } from \"tenoncms\u002Fcloudflare\";\nimport { cloudflare } from \"tenoncms\u002Fmedia\u002Fcloudflare\";\nimport { r2 } from \"tenoncms\u002Fmedia\u002Fr2\";\n\nexport default defineCms({\n  database: durableObject(),\n  secret: TENON_SECRET,\n  site: { url: TENON_SITE_URL },\n  media: {\n    storage: r2(env.MEDIA),\n    images: { provider: cloudflare({ binding: env.IMAGES }) },\n  },\n  \u002F\u002F Your collections…\n});\n","tenon.config.ts",[496,1098,1099,1126,1148,1170,1192,1213,1235,1239,1251,1264,1275,1295,1304,1323,1362,1366,1371],{"__ignoreMap":575},[579,1100,1101,1103,1105,1108,1110,1113,1115,1117,1119,1122,1124],{"class":581,"line":582},[579,1102,708],{"class":707},[579,1104,735],{"class":718},[579,1106,1107],{"class":711}," TENON_SECRET",[579,1109,741],{"class":718},[579,1111,1112],{"class":711}," TENON_SITE_URL",[579,1114,747],{"class":718},[579,1116,750],{"class":707},[579,1118,719],{"class":718},[579,1120,1121],{"class":588},"astro:env\u002Fserver",[579,1123,725],{"class":718},[579,1125,728],{"class":718},[579,1127,1128,1130,1132,1135,1137,1139,1141,1144,1146],{"class":581,"line":598},[579,1129,708],{"class":707},[579,1131,735],{"class":718},[579,1133,1134],{"class":711}," env",[579,1136,747],{"class":718},[579,1138,750],{"class":707},[579,1140,719],{"class":718},[579,1142,1143],{"class":588},"cloudflare:workers",[579,1145,725],{"class":718},[579,1147,728],{"class":718},[579,1149,1150,1152,1154,1157,1159,1161,1163,1166,1168],{"class":581,"line":762},[579,1151,708],{"class":707},[579,1153,735],{"class":718},[579,1155,1156],{"class":711}," defineCms",[579,1158,747],{"class":718},[579,1160,750],{"class":707},[579,1162,719],{"class":718},[579,1164,1165],{"class":588},"tenoncms",[579,1167,725],{"class":718},[579,1169,728],{"class":718},[579,1171,1172,1174,1176,1179,1181,1183,1185,1188,1190],{"class":581,"line":781},[579,1173,708],{"class":707},[579,1175,735],{"class":718},[579,1177,1178],{"class":711}," durableObject",[579,1180,747],{"class":718},[579,1182,750],{"class":707},[579,1184,719],{"class":718},[579,1186,1187],{"class":588},"tenoncms\u002Fcloudflare",[579,1189,725],{"class":718},[579,1191,728],{"class":718},[579,1193,1194,1196,1198,1200,1202,1204,1206,1209,1211],{"class":581,"line":788},[579,1195,708],{"class":707},[579,1197,735],{"class":718},[579,1199,834],{"class":711},[579,1201,747],{"class":718},[579,1203,750],{"class":707},[579,1205,719],{"class":718},[579,1207,1208],{"class":588},"tenoncms\u002Fmedia\u002Fcloudflare",[579,1210,725],{"class":718},[579,1212,728],{"class":718},[579,1214,1215,1217,1219,1222,1224,1226,1228,1231,1233],{"class":581,"line":806},[579,1216,708],{"class":707},[579,1218,735],{"class":718},[579,1220,1221],{"class":711}," r2",[579,1223,747],{"class":718},[579,1225,750],{"class":707},[579,1227,719],{"class":718},[579,1229,1230],{"class":588},"tenoncms\u002Fmedia\u002Fr2",[579,1232,725],{"class":718},[579,1234,728],{"class":718},[579,1236,1237],{"class":581,"line":826},[579,1238,785],{"emptyLinePlaceholder":784},[579,1240,1241,1243,1245,1247,1249],{"class":581,"line":842},[579,1242,791],{"class":707},[579,1244,794],{"class":707},[579,1246,1156],{"class":797},[579,1248,800],{"class":711},[579,1250,803],{"class":718},[579,1252,1253,1256,1258,1260,1262],{"class":581,"line":849},[579,1254,1255],{"class":809},"  database",[579,1257,813],{"class":718},[579,1259,1178],{"class":797},[579,1261,837],{"class":711},[579,1263,823],{"class":718},[579,1265,1266,1269,1271,1273],{"class":581,"line":863},[579,1267,1268],{"class":809},"  secret",[579,1270,813],{"class":718},[579,1272,1107],{"class":711},[579,1274,823],{"class":718},[579,1276,1277,1280,1282,1284,1287,1289,1292],{"class":581,"line":882},[579,1278,1279],{"class":809},"  site",[579,1281,813],{"class":718},[579,1283,735],{"class":718},[579,1285,1286],{"class":809}," url",[579,1288,813],{"class":718},[579,1290,1291],{"class":711}," TENON_SITE_URL ",[579,1293,1294],{"class":718},"},\n",[579,1296,1297,1300,1302],{"class":581,"line":893},[579,1298,1299],{"class":809},"  media",[579,1301,813],{"class":718},[579,1303,890],{"class":718},[579,1305,1306,1309,1311,1313,1316,1318,1321],{"class":581,"line":903},[579,1307,1308],{"class":809},"    storage",[579,1310,813],{"class":718},[579,1312,1221],{"class":797},[579,1314,1315],{"class":711},"(env",[579,1317,523],{"class":718},[579,1319,1320],{"class":711},"MEDIA)",[579,1322,823],{"class":718},[579,1324,1325,1328,1330,1332,1335,1337,1339,1341,1343,1346,1348,1350,1352,1355,1357,1360],{"class":581,"line":966},[579,1326,1327],{"class":809},"    images",[579,1329,813],{"class":718},[579,1331,735],{"class":718},[579,1333,1334],{"class":809}," provider",[579,1336,813],{"class":718},[579,1338,834],{"class":797},[579,1340,800],{"class":711},[579,1342,920],{"class":718},[579,1344,1345],{"class":809}," binding",[579,1347,813],{"class":718},[579,1349,1134],{"class":711},[579,1351,523],{"class":718},[579,1353,1354],{"class":711},"IMAGES ",[579,1356,1066],{"class":718},[579,1358,1359],{"class":711},") ",[579,1361,1294],{"class":718},[579,1363,1364],{"class":581,"line":984},[579,1365,1060],{"class":718},[579,1367,1368],{"class":581,"line":1000},[579,1369,1370],{"class":845},"  \u002F\u002F Your collections…\n",[579,1372,1373,1375,1377],{"class":581,"line":1016},[579,1374,1066],{"class":718},[579,1376,961],{"class":711},[579,1378,728],{"class":718},[569,1380,1383],{"className":697,"code":1381,"filename":1382,"language":700,"meta":575,"style":575},"import { handle } from \"@astrojs\u002Fcloudflare\u002Fhandler\";\nimport { tenonObject } from \"tenoncms\u002Fcloudflare\";\nimport cms from \"..\u002Ftenon.config\";\n\nexport const CmsObject = tenonObject(cms);\n\nexport default { fetch: handle } satisfies ExportedHandler\u003CEnv>;\n","src\u002Fworker.ts",[496,1384,1385,1407,1428,1446,1450,1471,1475],{"__ignoreMap":575},[579,1386,1387,1389,1391,1394,1396,1398,1400,1403,1405],{"class":581,"line":582},[579,1388,708],{"class":707},[579,1390,735],{"class":718},[579,1392,1393],{"class":711}," handle",[579,1395,747],{"class":718},[579,1397,750],{"class":707},[579,1399,719],{"class":718},[579,1401,1402],{"class":588},"@astrojs\u002Fcloudflare\u002Fhandler",[579,1404,725],{"class":718},[579,1406,728],{"class":718},[579,1408,1409,1411,1413,1416,1418,1420,1422,1424,1426],{"class":581,"line":598},[579,1410,708],{"class":707},[579,1412,735],{"class":718},[579,1414,1415],{"class":711}," tenonObject",[579,1417,747],{"class":718},[579,1419,750],{"class":707},[579,1421,719],{"class":718},[579,1423,1187],{"class":588},[579,1425,725],{"class":718},[579,1427,728],{"class":718},[579,1429,1430,1432,1435,1437,1439,1442,1444],{"class":581,"line":762},[579,1431,708],{"class":707},[579,1433,1434],{"class":711}," cms ",[579,1436,715],{"class":707},[579,1438,719],{"class":718},[579,1440,1441],{"class":588},"..\u002Ftenon.config",[579,1443,725],{"class":718},[579,1445,728],{"class":718},[579,1447,1448],{"class":581,"line":781},[579,1449,785],{"emptyLinePlaceholder":784},[579,1451,1452,1454,1458,1461,1464,1466,1469],{"class":581,"line":788},[579,1453,791],{"class":707},[579,1455,1457],{"class":1456},"spNyl"," const",[579,1459,1460],{"class":711}," CmsObject ",[579,1462,1463],{"class":718},"=",[579,1465,1415],{"class":797},[579,1467,1468],{"class":711},"(cms)",[579,1470,728],{"class":718},[579,1472,1473],{"class":581,"line":806},[579,1474,785],{"emptyLinePlaceholder":784},[579,1476,1477,1479,1481,1483,1486,1488,1491,1493,1496,1499,1502,1505],{"class":581,"line":826},[579,1478,791],{"class":707},[579,1480,794],{"class":707},[579,1482,735],{"class":718},[579,1484,1485],{"class":809}," fetch",[579,1487,813],{"class":718},[579,1489,1490],{"class":711}," handle ",[579,1492,1066],{"class":718},[579,1494,1495],{"class":707}," satisfies",[579,1497,1498],{"class":585}," ExportedHandler",[579,1500,1501],{"class":718},"\u003C",[579,1503,1504],{"class":585},"Env",[579,1506,1507],{"class":718},">;\n",[569,1509,1513],{"className":1510,"code":1511,"filename":1086,"language":1512,"meta":575,"style":575},"language-jsonc shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"name\": \"my-site\",\n  \"main\": \".\u002Fsrc\u002Fworker.ts\",\n  \"compatibility_date\": \"2026-10-20\",\n  \"compatibility_flags\": [\"nodejs_compat\"],\n  \"durable_objects\": {\n    \"bindings\": [{ \"name\": \"CMS\", \"class_name\": \"CmsObject\" }],\n  },\n  \"migrations\": [{ \"tag\": \"v1\", \"new_sqlite_classes\": [\"CmsObject\"] }],\n  \u002F\u002F `wrangler deploy` creates the bucket when it is missing.\n  \"r2_buckets\": [{ \"binding\": \"MEDIA\", \"bucket_name\": \"my-site-media\" }],\n  \"images\": { \"binding\": \"IMAGES\" },\n}\n","jsonc",[496,1514,1515,1519,1524,1529,1534,1539,1544,1549,1553,1558,1563,1568,1573],{"__ignoreMap":575},[579,1516,1517],{"class":581,"line":582},[579,1518,803],{},[579,1520,1521],{"class":581,"line":598},[579,1522,1523],{},"  \"name\": \"my-site\",\n",[579,1525,1526],{"class":581,"line":762},[579,1527,1528],{},"  \"main\": \".\u002Fsrc\u002Fworker.ts\",\n",[579,1530,1531],{"class":581,"line":781},[579,1532,1533],{},"  \"compatibility_date\": \"2026-10-20\",\n",[579,1535,1536],{"class":581,"line":788},[579,1537,1538],{},"  \"compatibility_flags\": [\"nodejs_compat\"],\n",[579,1540,1541],{"class":581,"line":806},[579,1542,1543],{},"  \"durable_objects\": {\n",[579,1545,1546],{"class":581,"line":826},[579,1547,1548],{},"    \"bindings\": [{ \"name\": \"CMS\", \"class_name\": \"CmsObject\" }],\n",[579,1550,1551],{"class":581,"line":842},[579,1552,1060],{},[579,1554,1555],{"class":581,"line":849},[579,1556,1557],{},"  \"migrations\": [{ \"tag\": \"v1\", \"new_sqlite_classes\": [\"CmsObject\"] }],\n",[579,1559,1560],{"class":581,"line":863},[579,1561,1562],{},"  \u002F\u002F `wrangler deploy` creates the bucket when it is missing.\n",[579,1564,1565],{"class":581,"line":882},[579,1566,1567],{},"  \"r2_buckets\": [{ \"binding\": \"MEDIA\", \"bucket_name\": \"my-site-media\" }],\n",[579,1569,1570],{"class":581,"line":893},[579,1571,1572],{},"  \"images\": { \"binding\": \"IMAGES\" },\n",[579,1574,1575],{"class":581,"line":903},[579,1576,1577],{},"}\n",[514,1579,1580,1586],{},[517,1581,1582,1583,1585],{},"The binding MUST be named ",[496,1584,1090],{},". All content lives in one object.",[517,1587,1588,1589,1592,1593,1595,1596,1598],{},"Run ",[496,1590,1591],{},"npx wrangler types"," after a change to ",[496,1594,1086],{},". It writes the ",[496,1597,1504],{}," type of the bindings.",[560,1600,1602],{"id":1601},"set-the-secret-for-development","Set the secret for development",[484,1604,1605,1606,1609],{},"Put the secret in ",[496,1607,1608],{},".dev.vars",", which Wrangler reads in development. Keep the file out of git:",[569,1611,1613],{"className":571,"code":1612,"filename":1608,"language":574,"meta":575,"style":575},"TENON_SECRET=\u003Cthe output of openssl rand -hex 32>\n",[496,1614,1615],{"__ignoreMap":575},[579,1616,1617,1620,1623,1626,1629,1632,1635,1638,1641,1644],{"class":581,"line":582},[579,1618,1619],{"class":711},"TENON_SECRET",[579,1621,1622],{"class":718},"=\u003C",[579,1624,1625],{"class":588},"the",[579,1627,1628],{"class":585}," output",[579,1630,1631],{"class":588}," of",[579,1633,1634],{"class":588}," openssl",[579,1636,1637],{"class":588}," rand",[579,1639,1640],{"class":588}," -hex",[579,1642,1643],{"class":955}," 3",[579,1645,1646],{"class":718},"2>\n",[560,1648,1650],{"id":1649},"start-the-site","Start the site",[484,1652,1588,1653,1656,1657,1660],{},[496,1654,1655],{},"npm run dev",", open ",[496,1658,1659],{},"\u002Fadmin"," and create the first admin. Development simulates the object, the bucket and the Images binding.",[488,1662,1664],{"id":1663},"read-content","Read content",[484,1666,1667,1670,1671,1674],{},[496,1668,1669],{},"Astro.locals.tenon"," is the ",[501,1672,1673],{"href":338},"client"," over the object, not the local API. It sends the request's cookie to the object, so the signed-in user's access rules apply, and the preview cookie shows drafts:",[1676,1677,1678,1691],"table",{},[1679,1680,1681],"thead",{},[1682,1683,1684,1688],"tr",{},[1685,1686,1687],"th",{},"On other targets",[1685,1689,1690],{},"On Cloudflare",[1692,1693,1694,1709,1721,1733,1746],"tbody",{},[1682,1695,1696,1706],{},[1697,1698,1699,1702,1703],"td",{},[496,1700,1701],{},"withDrafts()"," and ",[496,1704,1705],{},"withSession()",[1697,1707,1708],{},"None. The cookies decide",[1682,1710,1711,1716],{},[1697,1712,1713],{},[496,1714,1715],{},"create(…, { draft: true })",[1697,1717,1718],{},[496,1719,1720],{},"createDraft()",[1682,1722,1723,1728],{},[1697,1724,1725],{},[496,1726,1727],{},"cms.localization",[1697,1729,1730],{},[496,1731,1732],{},"await localization()",[1682,1734,1735,1743],{},[1697,1736,1737,1702,1740],{},[496,1738,1739],{},"cms.email",[496,1741,1742],{},"cms.auth()",[1697,1744,1745],{},"None",[1682,1747,1748,1751],{},[1697,1749,1750],{},"Any write from server code",[1697,1752,1753,1754],{},"Writes need a session or an ",[501,1755,1756],{"href":210},"API key",[484,1758,1759,1760,1764],{},"See ",[501,1761,1763],{"href":1762},"\u002Fdocs\u002Fcore\u002Freference\u002Fapi\u002Fclient#differences-to-the-local-api","Differences to the local API"," for the rest.",[1766,1767,1768,1769,523],"warning",{},"Pages that read the CMS MUST render per request. No object exists at build time, so a prerendered page that reads the CMS fails the build. Keep ",[496,1770,1771],{},"output: \"server\"",[488,1773,1775],{"id":1774},"media-and-images","Media and images",[514,1777,1778,1784,1790],{},[517,1779,1780,1783],{},[496,1781,1782],{},"r2(env.MEDIA)"," stores files through the bucket binding. It needs no keys and no CORS. Upload parts go through the Worker and the object.",[517,1785,1786,1789],{},[496,1787,1788],{},"cloudflare({ binding: env.IMAGES })"," resizes images with Cloudflare Images.",[517,1791,1792],{},"An image service, like imgix, works too.",[484,1794,1795,1798,1799,1801,1802,1702,1805,523],{},[496,1796,1797],{},"env"," comes from ",[496,1800,1143],{},". See ",[501,1803,1804],{"href":411},"Media storage",[501,1806,1807],{"href":415},"Image providers",[488,1809,249],{"id":1810},"email",[484,1812,1813,1814,1817],{},"Cloudflare Email Service sends through a ",[496,1815,1816],{},"send_email"," binding, with no SMTP server:",[569,1819,1821],{"className":697,"code":1820,"filename":1096,"language":700,"meta":575,"style":575},"import { env } from \"cloudflare:workers\";\nimport { cloudflareEmail } from \"tenoncms\u002Femail\u002Fcloudflare\";\n\nexport default defineCms({\n  \u002F\u002F ...\n  email: {\n    adapter: cloudflareEmail(env.EMAIL),\n    from: \"My Site \u003Chello@example.com>\",\n  },\n});\n",[496,1822,1823,1843,1865,1869,1881,1886,1895,1913,1929,1933],{"__ignoreMap":575},[579,1824,1825,1827,1829,1831,1833,1835,1837,1839,1841],{"class":581,"line":582},[579,1826,708],{"class":707},[579,1828,735],{"class":718},[579,1830,1134],{"class":711},[579,1832,747],{"class":718},[579,1834,750],{"class":707},[579,1836,719],{"class":718},[579,1838,1143],{"class":588},[579,1840,725],{"class":718},[579,1842,728],{"class":718},[579,1844,1845,1847,1849,1852,1854,1856,1858,1861,1863],{"class":581,"line":598},[579,1846,708],{"class":707},[579,1848,735],{"class":718},[579,1850,1851],{"class":711}," cloudflareEmail",[579,1853,747],{"class":718},[579,1855,750],{"class":707},[579,1857,719],{"class":718},[579,1859,1860],{"class":588},"tenoncms\u002Femail\u002Fcloudflare",[579,1862,725],{"class":718},[579,1864,728],{"class":718},[579,1866,1867],{"class":581,"line":762},[579,1868,785],{"emptyLinePlaceholder":784},[579,1870,1871,1873,1875,1877,1879],{"class":581,"line":781},[579,1872,791],{"class":707},[579,1874,794],{"class":707},[579,1876,1156],{"class":797},[579,1878,800],{"class":711},[579,1880,803],{"class":718},[579,1882,1883],{"class":581,"line":788},[579,1884,1885],{"class":845},"  \u002F\u002F ...\n",[579,1887,1888,1891,1893],{"class":581,"line":806},[579,1889,1890],{"class":809},"  email",[579,1892,813],{"class":718},[579,1894,890],{"class":718},[579,1896,1897,1900,1902,1904,1906,1908,1911],{"class":581,"line":826},[579,1898,1899],{"class":809},"    adapter",[579,1901,813],{"class":718},[579,1903,1851],{"class":797},[579,1905,1315],{"class":711},[579,1907,523],{"class":718},[579,1909,1910],{"class":711},"EMAIL)",[579,1912,823],{"class":718},[579,1914,1915,1918,1920,1922,1925,1927],{"class":581,"line":842},[579,1916,1917],{"class":809},"    from",[579,1919,813],{"class":718},[579,1921,719],{"class":718},[579,1923,1924],{"class":588},"My Site \u003Chello@example.com>",[579,1926,725],{"class":718},[579,1928,823],{"class":718},[579,1930,1931],{"class":581,"line":849},[579,1932,1060],{"class":718},[579,1934,1935,1937,1939],{"class":581,"line":863},[579,1936,1066],{"class":718},[579,1938,961],{"class":711},[579,1940,728],{"class":718},[569,1942,1944],{"className":1510,"code":1943,"filename":1086,"language":1512,"meta":575,"style":575},"\"send_email\": [{ \"name\": \"EMAIL\" }],\n",[496,1945,1946],{"__ignoreMap":575},[579,1947,1948],{"class":581,"line":582},[579,1949,1943],{},[514,1951,1952,1955,1965],{},[517,1953,1954],{},"The sender's domain MUST be onboarded to Email Service in the Cloudflare dashboard.",[517,1956,1957,1960,1961,1964],{},[496,1958,1959],{},"wrangler dev"," only logs each mail. Add ",[496,1962,1963],{},"\"remote\": true"," to the binding to send real mail in development.",[517,1966,1967,1970],{},[496,1968,1969],{},"smtp()"," works on Workers too, on port 465 or 587.",[484,1972,1759,1973,1976],{},[501,1974,1975],{"href":260},"Cloudflare Email Service"," for its limits and errors.",[1978,1979,1980,1981,1984],"tip",{},"Set up email before you go live. ",[496,1982,1983],{},"tenon users recover"," needs the database itself, so it cannot reach a Durable Object. Email is then the way back in after a lost password.",[488,1986,1988],{"id":1987},"deploy","Deploy",[1990,1991,1992,2044,2080],"ol",{},[517,1993,1994,1995,2030,2033,2036,2037,2040,2041,523],{},"Set the secrets of the Worker:",[569,1996,1998],{"className":571,"code":1997,"language":574,"meta":575,"style":575},"npx wrangler secret put TENON_SECRET\nnpx wrangler secret put TENON_SITE_URL\n",[496,1999,2000,2017],{"__ignoreMap":575},[579,2001,2002,2005,2008,2011,2014],{"class":581,"line":582},[579,2003,2004],{"class":585},"npx",[579,2006,2007],{"class":588}," wrangler",[579,2009,2010],{"class":588}," secret",[579,2012,2013],{"class":588}," put",[579,2015,2016],{"class":588}," TENON_SECRET\n",[579,2018,2019,2021,2023,2025,2027],{"class":581,"line":598},[579,2020,2004],{"class":585},[579,2022,2007],{"class":588},[579,2024,2010],{"class":588},[579,2026,2013],{"class":588},[579,2028,2029],{"class":588}," TENON_SITE_URL\n",[2031,2032],"br",{},[496,2034,2035],{},"TENON_SITE_URL"," is the public origin, like ",[496,2038,2039],{},"https:\u002F\u002Fexample.com",". Add the other variables of your config the same way, like ",[496,2042,2043],{},"EMAIL_FROM",[517,2045,2046,2047,2062,2064,2065,2067,2068,2071,2072,2075,2076,2079],{},"Build and deploy:",[569,2048,2050],{"className":571,"code":2049,"language":574,"meta":575,"style":575},"npm run deploy\n",[496,2051,2052],{"__ignoreMap":575},[579,2053,2054,2056,2059],{"class":581,"line":582},[579,2055,573],{"class":585},[579,2057,2058],{"class":588}," run",[579,2060,2061],{"class":588}," deploy\n",[2031,2063],{},"The starter's ",[496,2066,1987],{}," script runs ",[496,2069,2070],{},"astro build && wrangler deploy",". ",[496,2073,2074],{},"wrangler deploy"," creates the bucket of ",[496,2077,2078],{},"r2_buckets"," when it is missing.",[517,2081,2082,2083,2085],{},"Open ",[496,2084,1659],{}," on the deployed site and create the first admin.",[484,2087,2088,2089,2092,2093,813],{},"The ",[496,2090,2091],{},"tenon"," CLI cannot load a Cloudflare config on your machine. Talk to the deployed site with ",[496,2094,2095],{},"--url",[569,2097,2099],{"className":571,"code":2098,"language":574,"meta":575,"style":575},"npx tenon login --url https:\u002F\u002Fexample.com\nnpx tenon backup --url https:\u002F\u002Fexample.com\n",[496,2100,2101,2117],{"__ignoreMap":575},[579,2102,2103,2105,2108,2111,2114],{"class":581,"line":582},[579,2104,2004],{"class":585},[579,2106,2107],{"class":588}," tenon",[579,2109,2110],{"class":588}," login",[579,2112,2113],{"class":588}," --url",[579,2115,2116],{"class":588}," https:\u002F\u002Fexample.com\n",[579,2118,2119,2121,2123,2126,2128],{"class":581,"line":598},[579,2120,2004],{"class":585},[579,2122,2107],{"class":588},[579,2124,2125],{"class":588}," backup",[579,2127,2113],{"class":588},[579,2129,2116],{"class":588},[484,2131,1759,2132,2136],{},[501,2133,2135],{"href":2134},"\u002Fdocs\u002Fcli\u002Foverview#local-or-remote","Local or remote"," for which commands work that way.",[488,2138,2140],{"id":2139},"related-resources","Related resources",[514,2142,2143,2149,2154,2159,2164],{},[517,2144,2145,2148],{},[501,2146,2147],{"href":385},"Deployment overview",": what every deployment needs, and a checklist.",[517,2150,2151,2153],{},[501,2152,364],{"href":365},": the integration and its options.",[517,2155,2156,2158],{},[501,2157,1975],{"href":260},": the binding and the API mode.",[517,2160,2161,2163],{},[501,2162,281],{"href":282},": how the object runs jobs.",[517,2165,2166,2168],{},[501,2167,475],{"href":476},": sign in to the deployed site from the CLI.",[2170,2171,2172],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}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 .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 pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}",{"title":575,"searchDepth":598,"depth":598,"links":2174},[2175,2176,2177,2184,2185,2186,2187,2188],{"id":490,"depth":598,"text":491},{"id":511,"depth":598,"text":512},{"id":550,"depth":598,"text":551,"children":2178},[2179,2180,2181,2182,2183],{"id":562,"depth":762,"text":563},{"id":690,"depth":762,"text":691},{"id":1076,"depth":762,"text":1077},{"id":1601,"depth":762,"text":1602},{"id":1649,"depth":762,"text":1650},{"id":1663,"depth":598,"text":1664},{"id":1774,"depth":598,"text":1775},{"id":1810,"depth":598,"text":249},{"id":1987,"depth":598,"text":1988},{"id":2139,"depth":598,"text":2140},"Run Tenon on Workers, with the CMS in a Durable Object.","md",null,{},{"title":259,"description":2189},"wHzb05fya934XSkEjwbx2olIfUSc_K_hG6NqvmqWrIM",[2196,2198],{"title":394,"path":395,"stem":396,"description":2197,"children":-1},"Run Tenon in Vercel functions with Postgres or Turso and a bucket.",{"title":406,"path":407,"stem":408,"description":2199,"children":-1},"Pick a database and connect it.",1795884697589]