[{"data":1,"prerenderedAt":1728},["ShallowReactive",2],{"navigation_docs":3,"-docs-guide-recipes-troubleshooting":478,"-docs-guide-recipes-troubleshooting-surround":1723},[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":443,"body":480,"description":1717,"extension":1718,"links":1719,"meta":1720,"navigation":701,"path":444,"seo":1721,"stem":445,"__hash__":1722},"docs\u002Fdocs\u002F2.guide\u002F4.recipes\u002F6.troubleshooting.md",{"type":481,"value":482,"toc":1670},"minimark",[483,487,492,497,513,518,545,552,567,581,588,594,621,626,779,783,796,804,808,819,823,854,866,884,891,896,905,909,914,929,939,945,950,959,963,968,989,992,996,1008,1023,1030,1035,1044,1055,1175,1179,1192,1204,1208,1213,1232,1236,1249,1261,1265,1269,1289,1307,1314,1322,1333,1337,1350,1362,1366,1371,1411,1419,1423,1428,1433,1437,1441,1457,1474,1478,1491,1512,1522,1542,1551,1555,1559,1564,1577,1589,1593,1599,1619,1635,1639,1666],[484,485,486],"p",{},"This page lists problems that site developers meet with Tenon, from the first start to production. Each entry names the symptom, its cause and the fix. Search the page for the error message you see.",[488,489,491],"h2",{"id":490},"setup","Setup",[493,494,496],"h3",{"id":495},"creating-the-first-admin-answers-403","Creating the first admin answers 403",[484,498,499,503,504,508,509,512],{},[500,501,502],"strong",{},"Cause:"," the database already has a user. Only the first user can sign up. Often an old ",[505,506,507],"code",{},"cms.db"," is still there, or an older dev server still runs on the same port and answers instead. Astro 7 runs ",[505,510,511],{},"astro dev"," in the background.",[484,514,515],{},[500,516,517],{},"Fix:",[519,520,521,529,542],"ul",{},[522,523,524,525,528],"li",{},"Stop the old server. For Astro, run ",[505,526,527],{},"npx astro dev stop",".",[522,530,531,532,535,536,528],{},"Sign in with the user that exists. If nobody knows the password, run ",[505,533,534],{},"npx tenon users recover \u003Cemail>",". It prints a link that signs the user in once. See ",[537,538,540],"a",{"href":539},"\u002Fdocs\u002Fcli\u002Fusers#sign-in-when-nobody-can",[505,541,463],{},[522,543,544],{},"In development, point the database at a new file to start over.",[493,546,548,551],{"id":547},"_tenon-answers-404-in-tanstack-start",[505,549,550],{},"\u002F_tenon"," answers 404 in TanStack Start",[484,553,554,556,557,560,561,564,565,528],{},[500,555,502],{}," the route file is named ",[505,558,559],{},"_tenon.$.ts",". TanStack Router treats a file that starts with ",[505,562,563],{},"_"," as a layout without a path, so it never matches ",[505,566,550],{},[484,568,569,571,572,575,576,578,579,528],{},[500,570,517],{}," name the file ",[505,573,574],{},"src\u002Froutes\u002F[_]tenon.$.ts",". The brackets escape the ",[505,577,563],{},". See ",[537,580,372],{"href":373},[493,582,584,585],{"id":583},"saving-alt-text-fails-with-answered-200-without-json","Saving alt text fails with ",[505,586,587],{},"answered 200 without JSON",[484,589,590,591,528],{},"Renaming a file or changing its alt text fails. The client's error reads like ",[505,592,593],{},"PATCH \u002Fmedia\u002F\u003Cid> answered 200 without JSON",[484,595,596,598,599,602,603,606,607,606,610,613,614,617,618,528],{},[500,597,502],{}," the route that hands ",[505,600,601],{},"\u002F_tenon\u002F*"," to the CMS skips some request methods. For those, your app answers with one of its own pages, and the client rejects any answer that is not JSON. Older TanStack Start starters list only ",[505,604,605],{},"GET",", ",[505,608,609],{},"POST",[505,611,612],{},"PUT"," and ",[505,615,616],{},"DELETE",", without ",[505,619,620],{},"PATCH",[484,622,623,625],{},[500,624,517],{}," hand every method to the CMS. In TanStack Start:",[627,628,633],"pre",{"className":629,"code":630,"filename":574,"language":631,"meta":632,"style":632},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","const handle = ({ request }: { request: Request }) => cms.fetch(request);\n\nexport const Route = createFileRoute(\"\u002F_tenon\u002F$\")({\n  server: { handlers: { ANY: handle } },\n});\n","ts","",[505,634,635,696,703,739,769],{"__ignoreMap":632},[636,637,640,644,648,652,655,659,662,665,668,671,675,678,681,684,686,690,693],"span",{"class":638,"line":639},"line",1,[636,641,643],{"class":642},"spNyl","const",[636,645,647],{"class":646},"sTEyZ"," handle ",[636,649,651],{"class":650},"sMK4o","=",[636,653,654],{"class":650}," ({",[636,656,658],{"class":657},"sHdIc"," request",[636,660,661],{"class":650}," }:",[636,663,664],{"class":650}," {",[636,666,658],{"class":667},"swJcz",[636,669,670],{"class":650},":",[636,672,674],{"class":673},"sBMFI"," Request",[636,676,677],{"class":650}," })",[636,679,680],{"class":642}," =>",[636,682,683],{"class":646}," cms",[636,685,528],{"class":650},[636,687,689],{"class":688},"s2Zo4","fetch",[636,691,692],{"class":646},"(request)",[636,694,695],{"class":650},";\n",[636,697,699],{"class":638,"line":698},2,[636,700,702],{"emptyLinePlaceholder":701},true,"\n",[636,704,706,710,713,716,718,721,724,727,731,733,736],{"class":638,"line":705},3,[636,707,709],{"class":708},"s7zQu","export",[636,711,712],{"class":642}," const",[636,714,715],{"class":646}," Route ",[636,717,651],{"class":650},[636,719,720],{"class":688}," createFileRoute",[636,722,723],{"class":646},"(",[636,725,726],{"class":650},"\"",[636,728,730],{"class":729},"sfazB","\u002F_tenon\u002F$",[636,732,726],{"class":650},[636,734,735],{"class":646},")(",[636,737,738],{"class":650},"{\n",[636,740,742,745,747,749,752,754,756,759,761,763,766],{"class":638,"line":741},4,[636,743,744],{"class":667},"  server",[636,746,670],{"class":650},[636,748,664],{"class":650},[636,750,751],{"class":667}," handlers",[636,753,670],{"class":650},[636,755,664],{"class":650},[636,757,758],{"class":667}," ANY",[636,760,670],{"class":650},[636,762,647],{"class":646},[636,764,765],{"class":650},"}",[636,767,768],{"class":650}," },\n",[636,770,772,774,777],{"class":638,"line":771},5,[636,773,765],{"class":650},[636,775,776],{"class":646},")",[636,778,695],{"class":650},[493,780,782],{"id":781},"a-new-admin-path-does-not-apply","A new admin path does not apply",[484,784,785,787,788,791,792,795],{},[500,786,502],{}," the adapters read ",[505,789,790],{},"admin.path"," from ",[505,793,794],{},"tenon.config.ts"," when they start, and write the value of an env var it reads into the build.",[484,797,798,800,801,528],{},[500,799,517],{}," restart the dev server, or build again. In TanStack Start, also rename the admin route file to the new path, like ",[505,802,803],{},"src\u002Froutes\u002Fcms.$.ts",[488,805,807],{"id":806},"build-and-deploy","Build and deploy",[493,809,811,814,815,818],{"id":810},"nuxt-preview-or-astro-preview-loses-the-data-or-the-secret",[505,812,813],{},"nuxt preview"," or ",[505,816,817],{},"astro preview"," loses the data or the secret",[484,820,821],{},[500,822,502],{},[519,824,825,841],{},[522,826,827,829,830,833,834,814,837,840],{},[505,828,813],{}," runs from ",[505,831,832],{},".output\u002F",". A relative ",[505,835,836],{},"file:.\u002Fcms.db",[505,838,839],{},".\u002F.uploads"," then lands in the build output, and the next build deletes it.",[522,842,843,845,846,849,850,853],{},[505,844,817],{}," does not load ",[505,847,848],{},".env",", so ",[505,851,852],{},"TENON_SECRET"," is missing.",[484,855,856,858,859,861,862,865],{},[500,857,517],{}," use absolute paths for the database and the uploads folder in Nuxt. In Astro, load ",[505,860,848],{}," yourself, as the ",[505,863,864],{},"start"," script of the Node starter does:",[627,867,871],{"className":868,"code":869,"language":870,"meta":632,"style":632},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","node --env-file-if-exists=.env .\u002Fdist\u002Fserver\u002Fentry.mjs\n","bash",[505,872,873],{"__ignoreMap":632},[636,874,875,878,881],{"class":638,"line":639},[636,876,877],{"class":673},"node",[636,879,880],{"class":729}," --env-file-if-exists=.env",[636,882,883],{"class":729}," .\u002Fdist\u002Fserver\u002Fentry.mjs\n",[493,885,887,888],{"id":886},"the-server-cannot-find-libsqlplatform","The server cannot find ",[505,889,890],{},"@libsql\u002F\u003Cplatform>",[484,892,893,895],{},[500,894,502],{}," libSQL ships one native binary per operating system and CPU. The project was installed or built on another platform than the server, for example on macOS for a Linux container.",[484,897,898,900,901,904],{},[500,899,517],{}," install and build on the platform you deploy to, for example inside the Docker image or in CI. Turso by URL (",[505,902,903],{},"libsql:\u002F\u002F…",") needs no binary.",[493,906,908],{"id":907},"a-prerendered-page-fails-the-build-on-cloudflare","A prerendered page fails the build on Cloudflare",[484,910,911,913],{},[500,912,502],{}," the CMS lives in a Durable Object, and no object exists at build time.",[484,915,916,918,919,922,923,926,927,528],{},[500,917,517],{}," set ",[505,920,921],{},"output: \"server\""," in ",[505,924,925],{},"astro.config.ts",", so pages that read the CMS render per request. See ",[537,928,259],{"href":398},[493,930,932,935,936],{"id":931},"wrangler-deploy-fails-with-inherit-binding-media-is-invalid",[505,933,934],{},"wrangler deploy"," fails with ",[505,937,938],{},"inherit binding 'MEDIA' is invalid",[484,940,941,942,528],{},"The full message is ",[505,943,944],{},"inherit binding 'MEDIA' is invalid: previous version does not have binding named 'MEDIA'",[484,946,947,949],{},[500,948,502],{}," R2 is not enabled on the Cloudflare account, so Wrangler cannot create the bucket.",[484,951,952,954,955,958],{},[500,953,517],{}," enable R2 in the Cloudflare dashboard, then deploy again. ",[505,956,957],{},"npx wrangler r2 bucket list"," answers with code 10042 until R2 is on.",[493,960,962],{"id":961},"the-deploy-on-vercel-fails-because-of-a-cron-job","The deploy on Vercel fails because of a cron job",[484,964,965,967],{},[500,966,502],{}," the Vercel Hobby plan allows one cron job a day. In TanStack Start and standalone projects, the job clock becomes a Vercel Cron Job that runs every minute.",[484,969,970,918,972,975,976,980,981,918,984,578,987,528],{},[500,971,517],{},[505,973,974],{},"tenonAdmin({ jobs: false })"," and call ",[537,977,979],{"href":978},"\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Fclock#the-clock-route","the clock route"," from an outside cron service, or use the Pro plan. The Vercel starters of ",[505,982,983],{},"npm create tenoncms",[505,985,986],{},"jobs: false",[537,988,394],{"href":395},[488,990,116],{"id":991},"media",[493,993,995],{"id":994},"uploads-fail-on-vercel-or-the-media-page-is-missing","Uploads fail on Vercel, or the Media page is missing",[484,997,998,1000,1001,1003,1004,1007],{},[500,999,502],{}," serverless functions have a read-only disk, so the default storage on the local disk cannot keep files. Without a ",[505,1002,991],{}," option there is then no media library, and ",[505,1005,1006],{},"media: true"," throws.",[484,1009,1010,1012,1013,1016,1017,1020,1021,528],{},[500,1011,517],{}," store files in a bucket with ",[505,1014,1015],{},"s3()",", or ",[505,1018,1019],{},"r2()"," with keys. See ",[537,1022,410],{"href":411},[493,1024,1026,1027],{"id":1025},"uploads-fail-with-a-part-has-no-etag","Uploads fail with ",[505,1028,1029],{},"A part has no ETag",[484,1031,941,1032],{},[505,1033,1034],{},"A part has no ETag. The bucket's CORS setting MUST expose the ETag header.",[484,1036,1037,1039,1040,1043],{},[500,1038,502],{}," the browser uploads straight to the bucket. The bucket's CORS setting does not allow it, or hides the ",[505,1041,1042],{},"ETag"," header of each part.",[484,1045,1046,1048,1049,1051,1052,1054],{},[500,1047,517],{}," allow ",[505,1050,612],{}," from the admin's origin and expose ",[505,1053,1042],{}," in the bucket's CORS setting:",[627,1056,1061],{"className":1057,"code":1058,"filename":1059,"language":1060,"meta":632,"style":632},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","[\n  {\n    \"AllowedOrigins\": [\"https:\u002F\u002Fexample.com\"],\n    \"AllowedMethods\": [\"PUT\"],\n    \"AllowedHeaders\": [\"*\"],\n    \"ExposeHeaders\": [\"ETag\"]\n  }\n]\n","cors.json","json",[505,1062,1063,1068,1073,1098,1119,1141,1164,1170],{"__ignoreMap":632},[636,1064,1065],{"class":638,"line":639},[636,1066,1067],{"class":650},"[\n",[636,1069,1070],{"class":638,"line":698},[636,1071,1072],{"class":650},"  {\n",[636,1074,1075,1078,1081,1083,1085,1088,1090,1093,1095],{"class":638,"line":705},[636,1076,1077],{"class":650},"    \"",[636,1079,1080],{"class":642},"AllowedOrigins",[636,1082,726],{"class":650},[636,1084,670],{"class":650},[636,1086,1087],{"class":650}," [",[636,1089,726],{"class":650},[636,1091,1092],{"class":729},"https:\u002F\u002Fexample.com",[636,1094,726],{"class":650},[636,1096,1097],{"class":650},"],\n",[636,1099,1100,1102,1105,1107,1109,1111,1113,1115,1117],{"class":638,"line":741},[636,1101,1077],{"class":650},[636,1103,1104],{"class":642},"AllowedMethods",[636,1106,726],{"class":650},[636,1108,670],{"class":650},[636,1110,1087],{"class":650},[636,1112,726],{"class":650},[636,1114,612],{"class":729},[636,1116,726],{"class":650},[636,1118,1097],{"class":650},[636,1120,1121,1123,1126,1128,1130,1132,1134,1137,1139],{"class":638,"line":771},[636,1122,1077],{"class":650},[636,1124,1125],{"class":642},"AllowedHeaders",[636,1127,726],{"class":650},[636,1129,670],{"class":650},[636,1131,1087],{"class":650},[636,1133,726],{"class":650},[636,1135,1136],{"class":729},"*",[636,1138,726],{"class":650},[636,1140,1097],{"class":650},[636,1142,1144,1146,1149,1151,1153,1155,1157,1159,1161],{"class":638,"line":1143},6,[636,1145,1077],{"class":650},[636,1147,1148],{"class":642},"ExposeHeaders",[636,1150,726],{"class":650},[636,1152,670],{"class":650},[636,1154,1087],{"class":650},[636,1156,726],{"class":650},[636,1158,1042],{"class":729},[636,1160,726],{"class":650},[636,1162,1163],{"class":650},"]\n",[636,1165,1167],{"class":638,"line":1166},7,[636,1168,1169],{"class":650},"  }\n",[636,1171,1173],{"class":638,"line":1172},8,[636,1174,1163],{"class":650},[493,1176,1178],{"id":1177},"large-uploads-fail-with-413-behind-a-reverse-proxy","Large uploads fail with 413 behind a reverse proxy",[484,1180,1181,1183,1184,1187,1188,1191],{},[500,1182,502],{}," with ",[505,1185,1186],{},"local()"," storage, every part of an upload is one request to your server, up to ",[505,1189,1190],{},"partSize"," (16 MB by default). The proxy's body limit is smaller. nginx allows 1 MB by default.",[484,1193,1194,1196,1197,1199,1200,1203],{},[500,1195,517],{}," raise the limit above ",[505,1198,1190],{},", like ",[505,1201,1202],{},"client_max_body_size 20m;"," in nginx.",[493,1205,1207],{"id":1206},"images-keep-their-old-sizes","Images keep their old sizes",[484,1209,1210,1212],{},[500,1211,502],{}," the stored image variants follow the options they were made with.",[484,1214,1215,1217,1218,606,1221,1224,1225,578,1228,528],{},[500,1216,517],{}," after a change to ",[505,1219,1220],{},"sizes",[505,1222,1223],{},"presets"," or the provider, run ",[505,1226,1227],{},"npx tenon media regenerate",[537,1229,1230],{"href":468},[505,1231,467],{},[493,1233,1235],{"id":1234},"a-deleted-or-replaced-file-still-shows","A deleted or replaced file still shows",[484,1237,1238,1240,1241,1244,1245,1248],{},[500,1239,502],{}," files that Tenon serves carry ",[505,1242,1243],{},"Cache-Control: public, max-age=300, s-maxage=3600"," when media has no ",[505,1246,1247],{},"read"," rule. A CDN keeps them for up to an hour.",[484,1250,1251,1253,1254,1256,1257,1260],{},[500,1252,517],{}," wait, or purge the file in your CDN. With a ",[505,1255,1247],{}," rule on media, files carry ",[505,1258,1259],{},"private, no-cache",", so a CDN does not keep them.",[488,1262,1264],{"id":1263},"sign-in-and-email","Sign-in and email",[493,1266,1268],{"id":1267},"sign-in-links-point-to-localhost-or-to-the-wrong-host","Sign-in links point to localhost or to the wrong host",[484,1270,1271,1273,1274,1277,1278,1281,1282,1285,1286,1288],{},[500,1272,502],{}," links in emails and from ",[505,1275,1276],{},"tenon users recover"," use ",[505,1279,1280],{},"auth.baseURL",", else ",[505,1283,1284],{},"site.url",". In production, neither is set, or ",[505,1287,1284],{}," names a site on another origin than the CMS.",[484,1290,1291,918,1293,1296,1297,1300,1301,578,1303,528],{},[500,1292,517],{},[505,1294,1295],{},"TENON_SITE_URL"," (",[505,1298,1299],{},"NUXT_TENON_SITE_URL"," in Nuxt) to the public origin. When the CMS runs on its own origin, also set ",[505,1302,1280],{},[537,1304,1306],{"href":1305},"\u002Fdocs\u002Fcore\u002Fusers-and-access\u002Fauthentication#the-cms-origin","The CMS origin",[493,1308,1310,1311],{"id":1309},"signing-in-to-the-admin-fails-with-invalid_origin","Signing in to the admin fails with ",[505,1312,1313],{},"INVALID_ORIGIN",[484,1315,1316,1318,1319,1321],{},[500,1317,502],{}," the CMS runs on another origin than the site, and only ",[505,1320,1284],{}," is set. Sign-in then expects the site's origin.",[484,1323,1324,918,1326,1328,1329,528],{},[500,1325,517],{},[505,1327,1280],{}," to the origin of the CMS, without a path. See ",[537,1330,1332],{"href":1331},"\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fheadless#set-the-origins","Set the origins",[493,1334,1336],{"id":1335},"magic-link-and-email-code-are-missing-on-the-sign-in-page","Magic link and email code are missing on the sign-in page",[484,1338,1339,1341,1342,1345,1346,1349],{},[500,1340,502],{}," both need email. Without an email adapter and without your own sender, they are off, and ",[505,1343,1344],{},"\u002F_tenon\u002Fauth-status"," reports them as ",[505,1347,1348],{},"false",". Tenon warns at startup when they are the only methods.",[484,1351,1352,1354,1355,1358,1359,1361],{},[500,1353,517],{}," set up ",[537,1356,1357],{"href":250},"email",". Until then, ",[505,1360,534],{}," prints a sign-in link.",[493,1363,1365],{"id":1364},"invites-and-sign-in-emails-do-not-arrive","Invites and sign-in emails do not arrive",[484,1367,1368],{},[500,1369,1370],{},"Causes and fixes:",[519,1372,1373,1379,1389,1405],{},[522,1374,1375,1378],{},[500,1376,1377],{},"Cloudflare Email Service on the Workers Free plan"," sends only to verified destination addresses. Verify the address, or use the Workers Paid plan.",[522,1380,1381,1384,1385,1388],{},[500,1382,1383],{},"The sender's domain is not onboarded"," to Cloudflare Email Service. The send fails with a code like ",[505,1386,1387],{},"E_SENDER_NOT_VERIFIED",". Onboard the domain in the Cloudflare dashboard.",[522,1390,1391,1396,1397,1400,1401,1404],{},[500,1392,1393],{},[505,1394,1395],{},"wrangler dev"," only logs each mail of the ",[505,1398,1399],{},"send_email"," binding and saves it to a file. Add ",[505,1402,1403],{},"\"remote\": true"," to the binding to send real mail.",[522,1406,1407,1410],{},[500,1408,1409],{},"SMTP on Workers:"," port 25 is blocked. Use port 465, or 587 with STARTTLS.",[484,1412,1413,1414,613,1417,528],{},"See ",[537,1415,1416],{"href":260},"Cloudflare Email Service",[537,1418,255],{"href":256},[493,1420,1422],{"id":1421},"passkey-sign-in-fails-on-a-preview-deployment","Passkey sign-in fails on a preview deployment",[484,1424,1425,1427],{},[500,1426,502],{}," a passkey works only on the host it was created on.",[484,1429,1430,1432],{},[500,1431,517],{}," sign in with another method on preview hosts.",[488,1434,1436],{"id":1435},"a-site-on-another-origin","A site on another origin",[493,1438,1440],{"id":1439},"drafts-and-the-admin-bar-do-not-show-on-the-site","Drafts and the admin bar do not show on the site",[484,1442,1443,1445,1446,1449,1450,1453,1454,528],{},[500,1444,502],{}," the site does not get the editor's cookies. The site and the CMS share no parent domain, ",[505,1447,1448],{},"crossSubDomainCookies"," has no ",[505,1451,1452],{},"domain",", or the site runs on HTTP while the session cookie is ",[505,1455,1456],{},"Secure",[484,1458,1459,1461,1462,1183,1464,1466,1467,578,1470,528],{},[500,1460,517],{}," serve both from one parent domain over HTTPS, and set ",[505,1463,1448],{},[505,1465,1452],{},". Pass the full admin URL to ",[505,1468,1469],{},"preview({ admin: \"https:\u002F\u002Fcms.example.com\u002Fadmin\" })",[537,1471,1473],{"href":1472},"\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fheadless#share-the-cookies","Share the cookies",[493,1475,1477],{"id":1476},"the-sites-browser-code-gets-a-cors-error","The site's browser code gets a CORS error",[484,1479,1480,1482,1483,1485,1486,613,1488,1490],{},[500,1481,502],{}," CORS allows only the origin of ",[505,1484,1284],{},", with ",[505,1487,605],{},[505,1489,609],{},", on the content and admin bar routes. The request comes from another origin, uses another method, or calls another route, like sign-in.",[484,1492,1493,1495,1496,1499,1500,814,1502,922,1504,1507,1508,528],{},[500,1494,517],{}," list more origins in ",[505,1497,1498],{},"cors.origin",", and ",[505,1501,612],{},[505,1503,616],{},[505,1505,1506],{},"cors.allowMethods",". Sign-in, users, API keys and invites stay closed to other origins. See ",[537,1509,1511],{"href":1510},"\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fheadless#allow-more-origins","Allow more origins",[493,1513,1515,814,1518,1521],{"id":1514},"publish-or-delete-answers-403-from-the-sites-server",[505,1516,1517],{},"publish()",[505,1519,1520],{},"delete()"," answers 403 from the site's server",[484,1523,1524,1526,1527,1530,1531,606,1533,613,1535,1538,1539,528],{},[500,1525,502],{}," a write without a JSON body needs an ",[505,1528,1529],{},"Origin"," header for the CSRF check, and a server sends none. This covers ",[505,1532,1517],{},[505,1534,1520],{},[505,1536,1537],{},"media.upload()"," through ",[505,1540,1541],{},"createRequestClient()",[484,1543,1544,1546,1547,528],{},[500,1545,517],{}," use a client with an API key for those writes. See ",[537,1548,1550],{"href":1549},"\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fheadless#write-content","Write content",[488,1552,1554],{"id":1553},"jobs-and-data","Jobs and data",[493,1556,1558],{"id":1557},"scheduled-publishing-does-nothing","Scheduled publishing does nothing",[484,1560,1561,1563],{},[500,1562,502],{}," nothing runs the jobs on this host:",[519,1565,1566,1569,1572],{},[522,1567,1568],{},"Astro on Vercel and other serverless hosts have no clock.",[522,1570,1571],{},"Nuxt on Vercel has no clock either: Nitro 2 makes no Vercel Cron Job. The Nuxt module warns in a Vercel build.",[522,1573,1574,1576],{},[505,1575,986],{}," is set, and nothing calls the clock route.",[484,1578,1579,918,1581,1584,1585,1588],{},[500,1580,517],{},[505,1582,1583],{},"jobs.secret",", and call the ",[537,1586,1587],{"href":978},"clock route"," every minute from a cron service.",[493,1590,1592],{"id":1591},"a-request-hangs-after-adding-a-hook-or-a-seed","A request hangs after adding a hook or a seed",[484,1594,1595,1596,528],{},"It can also fail with ",[505,1597,1598],{},"TRANSACTION_ACTIVE",[484,1600,1601,1603,1604,1607,1608,1610,1611,1614,1615,1618],{},[500,1602,502],{}," a hook, seed or ",[505,1605,1606],{},"onInit"," calls the instance from ",[505,1609,794],{}," instead of the ",[505,1612,1613],{},"cms"," it gets. A seed's call waits for the seed itself. On a database with one connection, like ",[505,1616,1617],{},":memory:"," libSQL, PGlite or a Durable Object, a hook's call waits for the open transaction.",[484,1620,1621,1623,1624,1626,1627,1630,1631,1634],{},[500,1622,517],{}," use the ",[505,1625,1613],{}," argument in every hook. To run jobs from a hook, queue them with ",[505,1628,1629],{},"cms.jobs.queue()",". Never call ",[505,1632,1633],{},"cms.jobs.run()"," there.",[488,1636,1638],{"id":1637},"related-resources","Related resources",[519,1640,1641,1646,1651,1656,1661],{},[522,1642,1643,1645],{},[537,1644,28],{"href":29},": environment variables and the site URL.",[522,1647,1648,1650],{},[537,1649,163],{"href":164},": a site on another origin than the CMS.",[522,1652,1653,1655],{},[537,1654,281],{"href":282},": how jobs run on each host.",[522,1657,1658,1660],{},[537,1659,410],{"href":411},": buckets and CORS.",[522,1662,1663,1665],{},[537,1664,384],{"href":385},": Node, Vercel and Cloudflare.",[1667,1668,1669],"style",{},"html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}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 .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .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 .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 .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":632,"searchDepth":698,"depth":698,"links":1671},[1672,1680,1690,1698,1706,1712,1716],{"id":490,"depth":698,"text":491,"children":1673},[1674,1675,1677,1679],{"id":495,"depth":705,"text":496},{"id":547,"depth":705,"text":1676},"\u002F_tenon answers 404 in TanStack Start",{"id":583,"depth":705,"text":1678},"Saving alt text fails with answered 200 without JSON",{"id":781,"depth":705,"text":782},{"id":806,"depth":698,"text":807,"children":1681},[1682,1684,1686,1687,1689],{"id":810,"depth":705,"text":1683},"nuxt preview or astro preview loses the data or the secret",{"id":886,"depth":705,"text":1685},"The server cannot find @libsql\u002F\u003Cplatform>",{"id":907,"depth":705,"text":908},{"id":931,"depth":705,"text":1688},"wrangler deploy fails with inherit binding 'MEDIA' is invalid",{"id":961,"depth":705,"text":962},{"id":991,"depth":698,"text":116,"children":1691},[1692,1693,1695,1696,1697],{"id":994,"depth":705,"text":995},{"id":1025,"depth":705,"text":1694},"Uploads fail with A part has no ETag",{"id":1177,"depth":705,"text":1178},{"id":1206,"depth":705,"text":1207},{"id":1234,"depth":705,"text":1235},{"id":1263,"depth":698,"text":1264,"children":1699},[1700,1701,1703,1704,1705],{"id":1267,"depth":705,"text":1268},{"id":1309,"depth":705,"text":1702},"Signing in to the admin fails with INVALID_ORIGIN",{"id":1335,"depth":705,"text":1336},{"id":1364,"depth":705,"text":1365},{"id":1421,"depth":705,"text":1422},{"id":1435,"depth":698,"text":1436,"children":1707},[1708,1709,1710],{"id":1439,"depth":705,"text":1440},{"id":1476,"depth":705,"text":1477},{"id":1514,"depth":705,"text":1711},"publish() or delete() answers 403 from the site's server",{"id":1553,"depth":698,"text":1554,"children":1713},[1714,1715],{"id":1557,"depth":705,"text":1558},{"id":1591,"depth":705,"text":1592},{"id":1637,"depth":698,"text":1638},"Common problems and how to fix them.","md",null,{},{"title":443,"description":1717},"qBXSFMy8JadGqQSm5RWlNqK7pBK8apxprwtZSPpdtcI",[1724,1726],{"title":439,"path":440,"stem":441,"description":1725,"children":-1},"A Next.js site that reads from a standalone Tenon CMS, with drafts, the admin bar and the live preview.",{"title":50,"path":452,"stem":453,"description":1727,"children":-1},"The commands, how they reach a project, and the options they share.",1795884662231]