[{"data":1,"prerenderedAt":1946},["ShallowReactive",2],{"navigation_docs":3,"-docs-core-getting-started-configuration":478,"-docs-core-getting-started-configuration-surround":1941},[4,352,446],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Docs",false,"\u002Fdocs\u002Fcore","docs\u002F1.core",[10,35,141,174,195,212,242,318],{"title":11,"icon":6,"path":12,"stem":13,"children":14,"page":6},"Getting Started","\u002Fdocs\u002Fcore\u002Fgetting-started","docs\u002F1.core\u002F1.getting-started",[15,19,23,27,31],{"title":16,"path":17,"stem":18},"Introduction","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fintroduction","docs\u002F1.core\u002F1.getting-started\u002F1.introduction",{"title":20,"path":21,"stem":22},"Quick Start","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fquick-start","docs\u002F1.core\u002F1.getting-started\u002F2.quick-start",{"title":24,"path":25,"stem":26},"Add to an Existing Site","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fexisting-site","docs\u002F1.core\u002F1.getting-started\u002F3.existing-site",{"title":28,"path":29,"stem":30},"Configuration","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fconfiguration","docs\u002F1.core\u002F1.getting-started\u002F4.configuration",{"title":32,"path":33,"stem":34},"How Tenon works","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fhow-tenon-works","docs\u002F1.core\u002F1.getting-started\u002F5.how-tenon-works",{"title":36,"icon":6,"path":37,"stem":38,"children":39,"page":6},"Content Modeling","\u002Fdocs\u002Fcore\u002Fcontent-modeling","docs\u002F1.core\u002F2.content-modeling",[40,44,111,115,119],{"title":41,"path":42,"stem":43},"Collections and Globals","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fcollections-and-globals","docs\u002F1.core\u002F2.content-modeling\u002F1.collections-and-globals",{"title":45,"icon":6,"path":46,"stem":47,"children":48},"Fields","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002Findex",[49,51,55,59,63,67,71,75,79,83,87,91,95,99,103,107],{"title":50,"path":46,"stem":47},"Overview",{"title":52,"path":53,"stem":54},"Array","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Farray","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F01.array",{"title":56,"path":57,"stem":58},"Blocks","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fblocks","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F02.blocks",{"title":60,"path":61,"stem":62},"Boolean","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fboolean","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F03.boolean",{"title":64,"path":65,"stem":66},"Date","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fdate","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F04.date",{"title":68,"path":69,"stem":70},"File","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Ffile","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F05.file",{"title":72,"path":73,"stem":74},"Group","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fgroup","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F06.group",{"title":76,"path":77,"stem":78},"Image","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fimage","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F07.image",{"title":80,"path":81,"stem":82},"Link","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Flink","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F08.link",{"title":84,"path":85,"stem":86},"Number","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fnumber","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F09.number",{"title":88,"path":89,"stem":90},"Relation","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Frelation","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F10.relation",{"title":92,"path":93,"stem":94},"Rich text","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Frich-text","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F11.rich-text",{"title":96,"path":97,"stem":98},"Select","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fselect","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F12.select",{"title":100,"path":101,"stem":102},"Size","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fsize","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F13.size",{"title":104,"path":105,"stem":106},"Slug","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fslug","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F14.slug",{"title":108,"path":109,"stem":110},"Text","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Ftext","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F15.text",{"title":112,"path":113,"stem":114},"Relations","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Frelations","docs\u002F1.core\u002F2.content-modeling\u002F3.relations",{"title":116,"path":117,"stem":118},"Media","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fmedia","docs\u002F1.core\u002F2.content-modeling\u002F4.media",{"title":120,"icon":6,"path":121,"stem":122,"children":123},"Presets","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002Findex",[124,125,129,133,137],{"title":50,"path":121,"stem":122},{"title":126,"path":127,"stem":128},"Menu","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets\u002Fmenu","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F1.menu",{"title":130,"path":131,"stem":132},"Pages","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets\u002Fpages","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F2.pages",{"title":134,"path":135,"stem":136},"Settings","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets\u002Fsettings","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F3.settings",{"title":138,"path":139,"stem":140},"Strings","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets\u002Fstrings","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F4.strings",{"title":142,"icon":6,"path":143,"stem":144,"children":145,"page":6},"Working with Content","\u002Fdocs\u002Fcore\u002Fworking-with-content","docs\u002F1.core\u002F3.working-with-content",[146,150,154,158,162,166,170],{"title":147,"path":148,"stem":149},"Reading","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Freading","docs\u002F1.core\u002F3.working-with-content\u002F1.reading",{"title":151,"path":152,"stem":153},"Writing and Drafts","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fwriting","docs\u002F1.core\u002F3.working-with-content\u002F2.writing",{"title":155,"path":156,"stem":157},"Scheduled publishing","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fscheduled-publishing","docs\u002F1.core\u002F3.working-with-content\u002F3.scheduled-publishing",{"title":159,"path":160,"stem":161},"HTTP API and Client","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fhttp-api-and-client","docs\u002F1.core\u002F3.working-with-content\u002F4.http-api-and-client",{"title":163,"path":164,"stem":165},"Headless","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fheadless","docs\u002F1.core\u002F3.working-with-content\u002F5.headless",{"title":167,"path":168,"stem":169},"Localization","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Flocalization","docs\u002F1.core\u002F3.working-with-content\u002F6.localization",{"title":171,"path":172,"stem":173},"Hooks","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fhooks","docs\u002F1.core\u002F3.working-with-content\u002F7.hooks",{"title":175,"icon":6,"path":176,"stem":177,"children":178,"page":6},"Building Your Site","\u002Fdocs\u002Fcore\u002Fbuilding-your-site","docs\u002F1.core\u002F4.building-your-site",[179,183,187,191],{"title":180,"path":181,"stem":182},"Pages and SEO","\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Fpages-and-seo","docs\u002F1.core\u002F4.building-your-site\u002F1.pages-and-seo",{"title":184,"path":185,"stem":186},"Components","\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Fcomponents","docs\u002F1.core\u002F4.building-your-site\u002F2.components",{"title":188,"path":189,"stem":190},"Menus","\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Fmenus","docs\u002F1.core\u002F4.building-your-site\u002F3.menus",{"title":192,"path":193,"stem":194},"Live Preview","\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Flive-preview","docs\u002F1.core\u002F4.building-your-site\u002F4.live-preview",{"title":196,"icon":6,"path":197,"stem":198,"children":199,"page":6},"Users and Access","\u002Fdocs\u002Fcore\u002Fusers-and-access","docs\u002F1.core\u002F5.users-and-access",[200,204,208],{"title":201,"path":202,"stem":203},"Authentication","\u002Fdocs\u002Fcore\u002Fusers-and-access\u002Fauthentication","docs\u002F1.core\u002F5.users-and-access\u002F1.authentication",{"title":205,"path":206,"stem":207},"Access Control","\u002Fdocs\u002Fcore\u002Fusers-and-access\u002Faccess-control","docs\u002F1.core\u002F5.users-and-access\u002F2.access-control",{"title":209,"path":210,"stem":211},"API Keys","\u002Fdocs\u002Fcore\u002Fusers-and-access\u002Fapi-keys","docs\u002F1.core\u002F5.users-and-access\u002F3.api-keys",{"title":213,"icon":6,"path":214,"stem":215,"children":216},"Customization","\u002Fdocs\u002Fcore\u002Fcustomization","docs\u002F1.core\u002F6.customization\u002Findex",[217,218,222,226,230,234,238],{"title":50,"path":214,"stem":215},{"title":219,"path":220,"stem":221},"Admin","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fadmin","docs\u002F1.core\u002F6.customization\u002F1.admin",{"title":223,"path":224,"stem":225},"Custom Fields","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fcustom-fields","docs\u002F1.core\u002F6.customization\u002F2.custom-fields",{"title":227,"path":228,"stem":229},"Custom Pages and Actions","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fcustom-pages-and-actions","docs\u002F1.core\u002F6.customization\u002F3.custom-pages-and-actions",{"title":231,"path":232,"stem":233},"Styles and UI Libraries","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fstyles-and-ui-libraries","docs\u002F1.core\u002F6.customization\u002F4.styles-and-ui-libraries",{"title":235,"path":236,"stem":237},"Rich Text Extensions","\u002Fdocs\u002Fcore\u002Fcustomization\u002Frich-text-extensions","docs\u002F1.core\u002F6.customization\u002F5.rich-text-extensions",{"title":239,"path":240,"stem":241},"Plugins","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fplugins","docs\u002F1.core\u002F6.customization\u002F6.plugins",{"title":243,"icon":6,"path":244,"stem":245,"children":246},"Operations","\u002Fdocs\u002Fcore\u002Foperations","docs\u002F1.core\u002F7.operations\u002Findex",[247,248,266,288,306,310,314],{"title":50,"path":244,"stem":245},{"title":249,"icon":6,"path":250,"stem":251,"children":252},"Email","\u002Fdocs\u002Fcore\u002Foperations\u002Femail","docs\u002F1.core\u002F7.operations\u002F1.email\u002Findex",[253,254,258,262],{"title":50,"path":250,"stem":251},{"title":255,"path":256,"stem":257},"SMTP","\u002Fdocs\u002Fcore\u002Foperations\u002Femail\u002Fsmtp","docs\u002F1.core\u002F7.operations\u002F1.email\u002F1.smtp",{"title":259,"path":260,"stem":261},"Cloudflare","\u002Fdocs\u002Fcore\u002Foperations\u002Femail\u002Fcloudflare","docs\u002F1.core\u002F7.operations\u002F1.email\u002F2.cloudflare",{"title":263,"path":264,"stem":265},"Custom adapter","\u002Fdocs\u002Fcore\u002Foperations\u002Femail\u002Fcustom-adapter","docs\u002F1.core\u002F7.operations\u002F1.email\u002F3.custom-adapter",{"title":267,"icon":6,"path":268,"stem":269,"children":270},"Jobs","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002Findex",[271,272,276,280,284],{"title":50,"path":268,"stem":269},{"title":273,"path":274,"stem":275},"Queue jobs","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Fqueue-jobs","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002F1.queue-jobs",{"title":277,"path":278,"stem":279},"Recurring jobs","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Frecurring-jobs","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002F2.recurring-jobs",{"title":281,"path":282,"stem":283},"The clock","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Fclock","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002F3.clock",{"title":285,"path":286,"stem":287},"Manage jobs","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Fmanage-jobs","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002F4.manage-jobs",{"title":289,"icon":6,"path":290,"stem":291,"children":292},"Webhooks","\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks","docs\u002F1.core\u002F7.operations\u002F3.webhooks\u002Findex",[293,294,298,302],{"title":50,"path":290,"stem":291},{"title":295,"path":296,"stem":297},"Send webhooks","\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks\u002Fsend-webhooks","docs\u002F1.core\u002F7.operations\u002F3.webhooks\u002F1.send-webhooks",{"title":299,"path":300,"stem":301},"Receive webhooks","\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks\u002Freceive-webhooks","docs\u002F1.core\u002F7.operations\u002F3.webhooks\u002F2.receive-webhooks",{"title":303,"path":304,"stem":305},"Rebuild on publish","\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks\u002Frebuild-on-publish","docs\u002F1.core\u002F7.operations\u002F3.webhooks\u002F3.rebuild-on-publish",{"title":307,"path":308,"stem":309},"Backup and Restore","\u002Fdocs\u002Fcore\u002Foperations\u002Fbackup-and-restore","docs\u002F1.core\u002F7.operations\u002F4.backup-and-restore",{"title":311,"path":312,"stem":313},"Lifecycle Hooks","\u002Fdocs\u002Fcore\u002Foperations\u002Flifecycle-hooks","docs\u002F1.core\u002F7.operations\u002F5.lifecycle-hooks",{"title":315,"path":316,"stem":317},"Upgrades and Schema Changes","\u002Fdocs\u002Fcore\u002Foperations\u002Fupgrades-and-schema-changes","docs\u002F1.core\u002F7.operations\u002F6.upgrades-and-schema-changes",{"title":319,"icon":6,"path":320,"stem":321,"children":322,"page":6},"Reference","\u002Fdocs\u002Fcore\u002Freference","docs\u002F1.core\u002F8.reference",[323,326,344,348],{"title":28,"path":324,"stem":325},"\u002Fdocs\u002Fcore\u002Freference\u002Fconfiguration","docs\u002F1.core\u002F8.reference\u002F1.configuration",{"title":327,"icon":6,"path":328,"stem":329,"children":330},"API","\u002Fdocs\u002Fcore\u002Freference\u002Fapi","docs\u002F1.core\u002F8.reference\u002F2.api\u002Findex",[331,332,336,340],{"title":50,"path":328,"stem":329},{"title":333,"path":334,"stem":335},"Local API","\u002Fdocs\u002Fcore\u002Freference\u002Fapi\u002Flocal-api","docs\u002F1.core\u002F8.reference\u002F2.api\u002F1.local-api",{"title":337,"path":338,"stem":339},"Client","\u002Fdocs\u002Fcore\u002Freference\u002Fapi\u002Fclient","docs\u002F1.core\u002F8.reference\u002F2.api\u002F2.client",{"title":341,"path":342,"stem":343},"HTTP routes","\u002Fdocs\u002Fcore\u002Freference\u002Fapi\u002Fhttp-routes","docs\u002F1.core\u002F8.reference\u002F2.api\u002F3.http-routes",{"title":345,"path":346,"stem":347},"Errors and types","\u002Fdocs\u002Fcore\u002Freference\u002Ferrors-and-types","docs\u002F1.core\u002F8.reference\u002F3.errors-and-types",{"title":349,"path":350,"stem":351},"Package exports","\u002Fdocs\u002Fcore\u002Freference\u002Fpackage-exports","docs\u002F1.core\u002F8.reference\u002F4.package-exports",{"title":353,"icon":6,"path":354,"stem":355,"children":356,"page":6},"Guide","\u002Fdocs\u002Fguide","docs\u002F2.guide",[357,383,400,417],{"title":358,"icon":6,"path":359,"stem":360,"children":361},"Frameworks","\u002Fdocs\u002Fguide\u002Fframeworks","docs\u002F2.guide\u002F1.frameworks\u002Findex",[362,363,367,371,375,379],{"title":50,"path":359,"stem":360},{"title":364,"path":365,"stem":366},"Astro","\u002Fdocs\u002Fguide\u002Fframeworks\u002Fastro","docs\u002F2.guide\u002F1.frameworks\u002F1.astro",{"title":368,"path":369,"stem":370},"Nuxt","\u002Fdocs\u002Fguide\u002Fframeworks\u002Fnuxt","docs\u002F2.guide\u002F1.frameworks\u002F2.nuxt",{"title":372,"path":373,"stem":374},"TanStack Start","\u002Fdocs\u002Fguide\u002Fframeworks\u002Ftanstack-start","docs\u002F2.guide\u002F1.frameworks\u002F3.tanstack-start",{"title":376,"path":377,"stem":378},"Standalone","\u002Fdocs\u002Fguide\u002Fframeworks\u002Fstandalone","docs\u002F2.guide\u002F1.frameworks\u002F4.standalone",{"title":380,"path":381,"stem":382},"Other Frameworks","\u002Fdocs\u002Fguide\u002Fframeworks\u002Fother-frameworks","docs\u002F2.guide\u002F1.frameworks\u002F5.other-frameworks",{"title":384,"icon":6,"path":385,"stem":386,"children":387},"Deployment","\u002Fdocs\u002Fguide\u002Fdeployment","docs\u002F2.guide\u002F2.deployment\u002Findex",[388,389,393,397],{"title":50,"path":385,"stem":386},{"title":390,"path":391,"stem":392},"Node","\u002Fdocs\u002Fguide\u002Fdeployment\u002Fnode","docs\u002F2.guide\u002F2.deployment\u002F1.node",{"title":394,"path":395,"stem":396},"Vercel","\u002Fdocs\u002Fguide\u002Fdeployment\u002Fvercel","docs\u002F2.guide\u002F2.deployment\u002F2.vercel",{"title":259,"path":398,"stem":399},"\u002Fdocs\u002Fguide\u002Fdeployment\u002Fcloudflare","docs\u002F2.guide\u002F2.deployment\u002F3.cloudflare",{"title":401,"icon":6,"path":402,"stem":403,"children":404,"page":6},"Databases and Storage","\u002Fdocs\u002Fguide\u002Fdatabases-and-storage","docs\u002F2.guide\u002F3.databases-and-storage",[405,409,413],{"title":406,"path":407,"stem":408},"Databases","\u002Fdocs\u002Fguide\u002Fdatabases-and-storage\u002Fdatabases","docs\u002F2.guide\u002F3.databases-and-storage\u002F1.databases",{"title":410,"path":411,"stem":412},"Media Storage","\u002Fdocs\u002Fguide\u002Fdatabases-and-storage\u002Fmedia-storage","docs\u002F2.guide\u002F3.databases-and-storage\u002F2.media-storage",{"title":414,"path":415,"stem":416},"Image Providers","\u002Fdocs\u002Fguide\u002Fdatabases-and-storage\u002Fimage-providers","docs\u002F2.guide\u002F3.databases-and-storage\u002F3.image-providers",{"title":418,"icon":6,"path":419,"stem":420,"children":421,"page":6},"Recipes","\u002Fdocs\u002Fguide\u002Frecipes","docs\u002F2.guide\u002F4.recipes",[422,426,430,434,438,442],{"title":423,"path":424,"stem":425},"Seed Content","\u002Fdocs\u002Fguide\u002Frecipes\u002Fseed-content","docs\u002F2.guide\u002F4.recipes\u002F1.seed-content",{"title":427,"path":428,"stem":429},"Tracking and Consent","\u002Fdocs\u002Fguide\u002Frecipes\u002Ftracking-and-consent","docs\u002F2.guide\u002F4.recipes\u002F2.tracking-and-consent",{"title":431,"path":432,"stem":433},"Build a Custom Field","\u002Fdocs\u002Fguide\u002Frecipes\u002Fbuild-a-custom-field","docs\u002F2.guide\u002F4.recipes\u002F3.build-a-custom-field",{"title":435,"path":436,"stem":437},"Write a Plugin","\u002Fdocs\u002Fguide\u002Frecipes\u002Fwrite-a-plugin","docs\u002F2.guide\u002F4.recipes\u002F4.write-a-plugin",{"title":439,"path":440,"stem":441},"Build a Headless Site with Next.js","\u002Fdocs\u002Fguide\u002Frecipes\u002Fbuild-a-headless-site-with-nextjs","docs\u002F2.guide\u002F4.recipes\u002F5.build-a-headless-site-with-nextjs",{"title":443,"path":444,"stem":445},"Troubleshooting","\u002Fdocs\u002Fguide\u002Frecipes\u002Ftroubleshooting","docs\u002F2.guide\u002F4.recipes\u002F6.troubleshooting",{"title":447,"icon":6,"path":448,"stem":449,"children":450,"page":6},"CLI","\u002Fdocs\u002Fcli","docs\u002F3.cli",[451,454,458,462,466,470,474],{"title":50,"path":452,"stem":453},"\u002Fdocs\u002Fcli\u002Foverview","docs\u002F3.cli\u002F1.overview",{"title":455,"path":456,"stem":457},"create-tenoncms","\u002Fdocs\u002Fcli\u002Fcreate-tenoncms","docs\u002F3.cli\u002F2.create-tenoncms",{"title":459,"path":460,"stem":461},"tenon backup","\u002Fdocs\u002Fcli\u002Fbackup","docs\u002F3.cli\u002F3.backup",{"title":463,"path":464,"stem":465},"tenon users","\u002Fdocs\u002Fcli\u002Fusers","docs\u002F3.cli\u002F4.users",{"title":467,"path":468,"stem":469},"tenon media","\u002Fdocs\u002Fcli\u002Fmedia","docs\u002F3.cli\u002F5.media",{"title":471,"path":472,"stem":473},"tenon upgrade","\u002Fdocs\u002Fcli\u002Fupgrade","docs\u002F3.cli\u002F6.upgrade",{"title":475,"path":476,"stem":477},"tenon login","\u002Fdocs\u002Fcli\u002Flogin","docs\u002F3.cli\u002F7.login",{"id":479,"title":28,"body":480,"description":1935,"extension":1936,"links":1937,"meta":1938,"navigation":639,"path":29,"seo":1939,"stem":30,"__hash__":1940},"docs\u002Fdocs\u002F1.core\u002F1.getting-started\u002F4.configuration.md",{"type":481,"value":482,"toc":1925},"minimark",[483,492,500,509,512,542,551,555,566,720,742,752,755,948,970,974,980,1037,1040,1696,1711,1716,1729,1736,1742,1752,1756,1761,1775,1781,1785,1791,1813,1818,1822,1897,1915,1921],[484,485,486,487,491],"p",{},"This page explains the one file every Tenon project has, and what Tenon adds to your app. For every option, see the ",[488,489,490],"a",{"href":324},"configuration reference",".",[493,494,496],"h2",{"id":495},"tenonconfigts",[497,498,499],"code",{},"tenon.config.ts",[484,501,502,504,505,508],{},[497,503,499],{}," sits in the root of your project. It default-exports one CMS instance, made by ",[497,506,507],{},"defineCms()",". Everything Tenon knows comes from this file: your content types, the database, users, media and the admin.",[484,510,511],{},"Three things read it:",[513,514,515,526,532],"ul",{},[516,517,518,522,523,491],"li",{},[519,520,521],"strong",{},"Your pages"," import the instance to read content, like ",[497,524,525],{},"cms.find(\"posts\")",[516,527,528,531],{},[519,529,530],{},"The framework integration"," serves the API and the admin from it.",[516,533,534,541],{},[519,535,536,537,540],{},"The ",[497,538,539],{},"tenon"," CLI"," loads it for backups, users and upgrades.",[484,543,544,546,547,491],{},[497,545,507],{}," checks the config when it loads. If something is missing or invalid, the server stops at startup with an error. See ",[488,548,550],{"href":549},"\u002Fdocs\u002Fcore\u002Freference\u002Fconfiguration#startup-checks","Startup checks",[493,552,554],{"id":553},"the-smallest-config","The smallest config",[484,556,557,558,561,562,565],{},"Only ",[497,559,560],{},"database"," and ",[497,563,564],{},"secret"," are required:",[567,568,573],"pre",{"className":569,"code":570,"filename":499,"language":571,"meta":572,"style":572},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { defineCms } from \"tenoncms\";\nimport { sqlite } from \"tenoncms\u002Fsqlite\";\n\nexport default defineCms({\n  database: sqlite(\".\u002Fcms.db\"),\n  secret: process.env.TENON_SECRET!,\n});\n","ts","",[497,574,575,611,634,641,659,686,710],{"__ignoreMap":572},[576,577,580,584,588,592,595,598,601,605,608],"span",{"class":578,"line":579},"line",1,[576,581,583],{"class":582},"s7zQu","import",[576,585,587],{"class":586},"sMK4o"," {",[576,589,591],{"class":590},"sTEyZ"," defineCms",[576,593,594],{"class":586}," }",[576,596,597],{"class":582}," from",[576,599,600],{"class":586}," \"",[576,602,604],{"class":603},"sfazB","tenoncms",[576,606,607],{"class":586},"\"",[576,609,610],{"class":586},";\n",[576,612,614,616,618,621,623,625,627,630,632],{"class":578,"line":613},2,[576,615,583],{"class":582},[576,617,587],{"class":586},[576,619,620],{"class":590}," sqlite",[576,622,594],{"class":586},[576,624,597],{"class":582},[576,626,600],{"class":586},[576,628,629],{"class":603},"tenoncms\u002Fsqlite",[576,631,607],{"class":586},[576,633,610],{"class":586},[576,635,637],{"class":578,"line":636},3,[576,638,640],{"emptyLinePlaceholder":639},true,"\n",[576,642,644,647,650,653,656],{"class":578,"line":643},4,[576,645,646],{"class":582},"export",[576,648,649],{"class":582}," default",[576,651,591],{"class":652},"s2Zo4",[576,654,655],{"class":590},"(",[576,657,658],{"class":586},"{\n",[576,660,662,666,669,671,673,675,678,680,683],{"class":578,"line":661},5,[576,663,665],{"class":664},"swJcz","  database",[576,667,668],{"class":586},":",[576,670,620],{"class":652},[576,672,655],{"class":590},[576,674,607],{"class":586},[576,676,677],{"class":603},".\u002Fcms.db",[576,679,607],{"class":586},[576,681,682],{"class":590},")",[576,684,685],{"class":586},",\n",[576,687,689,692,694,697,699,702,704,707],{"class":578,"line":688},6,[576,690,691],{"class":664},"  secret",[576,693,668],{"class":586},[576,695,696],{"class":590}," process",[576,698,491],{"class":586},[576,700,701],{"class":590},"env",[576,703,491],{"class":586},[576,705,706],{"class":590},"TENON_SECRET",[576,708,709],{"class":586},"!,\n",[576,711,713,716,718],{"class":578,"line":712},7,[576,714,715],{"class":586},"}",[576,717,682],{"class":590},[576,719,610],{"class":586},[513,721,722,737],{},[516,723,724,726,727,730,731,734,735,491],{},[497,725,560],{},": where content and users are stored. ",[497,728,729],{},"sqlite()"," uses Node's built-in SQLite, so there is nothing to install. Tenon creates ",[497,732,733],{},"cms.db"," on the first request. For other databases, see ",[488,736,406],{"href":407},[516,738,739,741],{},[497,740,564],{},": signs sessions and tokens. It needs at least 32 characters.",[484,743,744,745,748,749,751],{},"This already gives you a working admin, users, a media library in ",[497,746,747],{},".\u002F.uploads"," and the ",[519,750,134],{}," page. It has no content types yet.",[484,753,754],{},"Add a collection right in the config:",[567,756,758],{"className":569,"code":757,"filename":499,"language":571,"meta":572,"style":572},"import { defineCms } from \"tenoncms\";\nimport { sqlite } from \"tenoncms\u002Fsqlite\";\n\nexport default defineCms({\n  database: sqlite(\".\u002Fcms.db\"),\n  secret: process.env.TENON_SECRET!,\n  collections: {\n    posts: {\n      fields: {\n        title: { type: \"text\", required: true },\n      },\n    },\n  },\n});\n",[497,759,760,780,800,804,816,836,854,864,874,884,921,927,933,939],{"__ignoreMap":572},[576,761,762,764,766,768,770,772,774,776,778],{"class":578,"line":579},[576,763,583],{"class":582},[576,765,587],{"class":586},[576,767,591],{"class":590},[576,769,594],{"class":586},[576,771,597],{"class":582},[576,773,600],{"class":586},[576,775,604],{"class":603},[576,777,607],{"class":586},[576,779,610],{"class":586},[576,781,782,784,786,788,790,792,794,796,798],{"class":578,"line":613},[576,783,583],{"class":582},[576,785,587],{"class":586},[576,787,620],{"class":590},[576,789,594],{"class":586},[576,791,597],{"class":582},[576,793,600],{"class":586},[576,795,629],{"class":603},[576,797,607],{"class":586},[576,799,610],{"class":586},[576,801,802],{"class":578,"line":636},[576,803,640],{"emptyLinePlaceholder":639},[576,805,806,808,810,812,814],{"class":578,"line":643},[576,807,646],{"class":582},[576,809,649],{"class":582},[576,811,591],{"class":652},[576,813,655],{"class":590},[576,815,658],{"class":586},[576,817,818,820,822,824,826,828,830,832,834],{"class":578,"line":661},[576,819,665],{"class":664},[576,821,668],{"class":586},[576,823,620],{"class":652},[576,825,655],{"class":590},[576,827,607],{"class":586},[576,829,677],{"class":603},[576,831,607],{"class":586},[576,833,682],{"class":590},[576,835,685],{"class":586},[576,837,838,840,842,844,846,848,850,852],{"class":578,"line":688},[576,839,691],{"class":664},[576,841,668],{"class":586},[576,843,696],{"class":590},[576,845,491],{"class":586},[576,847,701],{"class":590},[576,849,491],{"class":586},[576,851,706],{"class":590},[576,853,709],{"class":586},[576,855,856,859,861],{"class":578,"line":712},[576,857,858],{"class":664},"  collections",[576,860,668],{"class":586},[576,862,863],{"class":586}," {\n",[576,865,867,870,872],{"class":578,"line":866},8,[576,868,869],{"class":664},"    posts",[576,871,668],{"class":586},[576,873,863],{"class":586},[576,875,877,880,882],{"class":578,"line":876},9,[576,878,879],{"class":664},"      fields",[576,881,668],{"class":586},[576,883,863],{"class":586},[576,885,887,890,892,894,897,899,901,904,906,909,912,914,918],{"class":578,"line":886},10,[576,888,889],{"class":664},"        title",[576,891,668],{"class":586},[576,893,587],{"class":586},[576,895,896],{"class":664}," type",[576,898,668],{"class":586},[576,900,600],{"class":586},[576,902,903],{"class":603},"text",[576,905,607],{"class":586},[576,907,908],{"class":586},",",[576,910,911],{"class":664}," required",[576,913,668],{"class":586},[576,915,917],{"class":916},"sfNiH"," true",[576,919,920],{"class":586}," },\n",[576,922,924],{"class":578,"line":923},11,[576,925,926],{"class":586},"      },\n",[576,928,930],{"class":578,"line":929},12,[576,931,932],{"class":586},"    },\n",[576,934,936],{"class":578,"line":935},13,[576,937,938],{"class":586},"  },\n",[576,940,942,944,946],{"class":578,"line":941},14,[576,943,715],{"class":586},[576,945,682],{"class":590},[576,947,610],{"class":586},[484,949,950,951,954,955,958,959,962,963,966,967,491],{},"The key ",[497,952,953],{},"posts"," is the name you pass to ",[497,956,957],{},"find(\"posts\")",". The starters move each collection into its own file in ",[497,960,961],{},"collections\u002F"," with ",[497,964,965],{},"defineCollection()",". See ",[488,968,969],{"href":42},"Collections and globals",[493,971,973],{"id":972},"environment-variables","Environment variables",[484,975,976,977,979],{},"Tenon reads no environment variable at runtime. ",[497,978,499],{}," passes every value, so you decide where it comes from. The starters use these names:",[981,982,983,999],"table",{},[984,985,986],"thead",{},[987,988,989,993,996],"tr",{},[990,991,992],"th",{},"Variable",[990,994,995],{},"Required",[990,997,998],{},"What it is",[1000,1001,1002,1021],"tbody",{},[987,1003,1004,1009,1012],{},[1005,1006,1007],"td",{},[497,1008,706],{},[1005,1010,1011],{},"Yes",[1005,1013,1014,1015,1017,1018,491],{},"The value of ",[497,1016,564],{},". Generate one with ",[497,1019,1020],{},"openssl rand -hex 32",[987,1022,1023,1028,1031],{},[1005,1024,1025],{},[497,1026,1027],{},"TENON_SITE_URL",[1005,1029,1030],{},"No",[1005,1032,1014,1033,1036],{},[497,1034,1035],{},"site.url",", the public origin. Set it in production only.",[484,1038,1039],{},"Each framework loads them in its own way:",[1041,1042,1044,1386,1603],"tabs",{"sync":1043},"framework",[1045,1046,1047,1061,1283],"tabs-item",{"label":364},[484,1048,1049,1050,1052,1053,1056,1057,1060],{},"Declare the variables in the ",[497,1051,701],{}," schema of ",[497,1054,1055],{},"astro.config.ts",", and import them from ",[497,1058,1059],{},"astro:env\u002Fserver",". Astro checks them at startup.",[567,1062,1064],{"className":569,"code":1063,"filename":1055,"language":571,"meta":572,"style":572},"import { defineConfig, envField } from \"astro\u002Fconfig\";\n\nexport default defineConfig({\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",[497,1065,1066,1093,1097,1109,1118,1127,1188,1205,1220,1235,1246,1257,1266,1270,1274],{"__ignoreMap":572},[576,1067,1068,1070,1072,1075,1077,1080,1082,1084,1086,1089,1091],{"class":578,"line":579},[576,1069,583],{"class":582},[576,1071,587],{"class":586},[576,1073,1074],{"class":590}," defineConfig",[576,1076,908],{"class":586},[576,1078,1079],{"class":590}," envField",[576,1081,594],{"class":586},[576,1083,597],{"class":582},[576,1085,600],{"class":586},[576,1087,1088],{"class":603},"astro\u002Fconfig",[576,1090,607],{"class":586},[576,1092,610],{"class":586},[576,1094,1095],{"class":578,"line":613},[576,1096,640],{"emptyLinePlaceholder":639},[576,1098,1099,1101,1103,1105,1107],{"class":578,"line":636},[576,1100,646],{"class":582},[576,1102,649],{"class":582},[576,1104,1074],{"class":652},[576,1106,655],{"class":590},[576,1108,658],{"class":586},[576,1110,1111,1114,1116],{"class":578,"line":643},[576,1112,1113],{"class":664},"  env",[576,1115,668],{"class":586},[576,1117,863],{"class":586},[576,1119,1120,1123,1125],{"class":578,"line":661},[576,1121,1122],{"class":664},"    schema",[576,1124,668],{"class":586},[576,1126,863],{"class":586},[576,1128,1129,1132,1134,1136,1138,1141,1143,1146,1149,1151,1153,1156,1158,1160,1163,1165,1167,1169,1171,1173,1176,1178,1182,1184,1186],{"class":578,"line":688},[576,1130,1131],{"class":664},"      TENON_SECRET",[576,1133,668],{"class":586},[576,1135,1079],{"class":590},[576,1137,491],{"class":586},[576,1139,1140],{"class":652},"string",[576,1142,655],{"class":590},[576,1144,1145],{"class":586},"{",[576,1147,1148],{"class":664}," context",[576,1150,668],{"class":586},[576,1152,600],{"class":586},[576,1154,1155],{"class":603},"server",[576,1157,607],{"class":586},[576,1159,908],{"class":586},[576,1161,1162],{"class":664}," access",[576,1164,668],{"class":586},[576,1166,600],{"class":586},[576,1168,564],{"class":603},[576,1170,607],{"class":586},[576,1172,908],{"class":586},[576,1174,1175],{"class":664}," min",[576,1177,668],{"class":586},[576,1179,1181],{"class":1180},"sbssI"," 32",[576,1183,594],{"class":586},[576,1185,682],{"class":590},[576,1187,685],{"class":586},[576,1189,1190,1193,1195,1197,1199,1201,1203],{"class":578,"line":712},[576,1191,1192],{"class":664},"      TENON_SITE_URL",[576,1194,668],{"class":586},[576,1196,1079],{"class":590},[576,1198,491],{"class":586},[576,1200,1140],{"class":652},[576,1202,655],{"class":590},[576,1204,658],{"class":586},[576,1206,1207,1210,1212,1214,1216,1218],{"class":578,"line":866},[576,1208,1209],{"class":664},"        context",[576,1211,668],{"class":586},[576,1213,600],{"class":586},[576,1215,1155],{"class":603},[576,1217,607],{"class":586},[576,1219,685],{"class":586},[576,1221,1222,1225,1227,1229,1231,1233],{"class":578,"line":876},[576,1223,1224],{"class":664},"        access",[576,1226,668],{"class":586},[576,1228,600],{"class":586},[576,1230,564],{"class":603},[576,1232,607],{"class":586},[576,1234,685],{"class":586},[576,1236,1237,1240,1242,1244],{"class":578,"line":886},[576,1238,1239],{"class":664},"        url",[576,1241,668],{"class":586},[576,1243,917],{"class":916},[576,1245,685],{"class":586},[576,1247,1248,1251,1253,1255],{"class":578,"line":923},[576,1249,1250],{"class":664},"        optional",[576,1252,668],{"class":586},[576,1254,917],{"class":916},[576,1256,685],{"class":586},[576,1258,1259,1262,1264],{"class":578,"line":929},[576,1260,1261],{"class":586},"      }",[576,1263,682],{"class":590},[576,1265,685],{"class":586},[576,1267,1268],{"class":578,"line":935},[576,1269,932],{"class":586},[576,1271,1272],{"class":578,"line":941},[576,1273,938],{"class":586},[576,1275,1277,1279,1281],{"class":578,"line":1276},15,[576,1278,715],{"class":586},[576,1280,682],{"class":590},[576,1282,610],{"class":586},[567,1284,1286],{"className":569,"code":1285,"filename":499,"language":571,"meta":572,"style":572},"import { TENON_SECRET, TENON_SITE_URL } from \"astro:env\u002Fserver\";\n\nexport default defineCms({\n  secret: TENON_SECRET,\n  site: { url: TENON_SITE_URL, name: \"My Site\" },\n  \u002F\u002F ...\n});\n",[497,1287,1288,1314,1318,1330,1340,1372,1378],{"__ignoreMap":572},[576,1289,1290,1292,1294,1297,1299,1302,1304,1306,1308,1310,1312],{"class":578,"line":579},[576,1291,583],{"class":582},[576,1293,587],{"class":586},[576,1295,1296],{"class":590}," TENON_SECRET",[576,1298,908],{"class":586},[576,1300,1301],{"class":590}," TENON_SITE_URL",[576,1303,594],{"class":586},[576,1305,597],{"class":582},[576,1307,600],{"class":586},[576,1309,1059],{"class":603},[576,1311,607],{"class":586},[576,1313,610],{"class":586},[576,1315,1316],{"class":578,"line":613},[576,1317,640],{"emptyLinePlaceholder":639},[576,1319,1320,1322,1324,1326,1328],{"class":578,"line":636},[576,1321,646],{"class":582},[576,1323,649],{"class":582},[576,1325,591],{"class":652},[576,1327,655],{"class":590},[576,1329,658],{"class":586},[576,1331,1332,1334,1336,1338],{"class":578,"line":643},[576,1333,691],{"class":664},[576,1335,668],{"class":586},[576,1337,1296],{"class":590},[576,1339,685],{"class":586},[576,1341,1342,1345,1347,1349,1352,1354,1356,1358,1361,1363,1365,1368,1370],{"class":578,"line":661},[576,1343,1344],{"class":664},"  site",[576,1346,668],{"class":586},[576,1348,587],{"class":586},[576,1350,1351],{"class":664}," url",[576,1353,668],{"class":586},[576,1355,1301],{"class":590},[576,1357,908],{"class":586},[576,1359,1360],{"class":664}," name",[576,1362,668],{"class":586},[576,1364,600],{"class":586},[576,1366,1367],{"class":603},"My Site",[576,1369,607],{"class":586},[576,1371,920],{"class":586},[576,1373,1374],{"class":578,"line":688},[576,1375,1377],{"class":1376},"sHwdD","  \u002F\u002F ...\n",[576,1379,1380,1382,1384],{"class":578,"line":712},[576,1381,715],{"class":586},[576,1383,682],{"class":590},[576,1385,610],{"class":586},[1045,1387,1388,1413,1498],{"label":368},[484,1389,1390,1391,1394,1395,1398,1399,1401,1402,1405,1406,1409,1410,491],{},"Declare each value in ",[497,1392,1393],{},"runtimeConfig",", and read it with ",[497,1396,1397],{},"useRuntimeConfig()"," in ",[497,1400,499],{},". Nuxt fills each key from a variable with the ",[497,1403,1404],{},"NUXT_"," prefix: ",[497,1407,1408],{},"tenonSecret"," reads ",[497,1411,1412],{},"NUXT_TENON_SECRET",[567,1414,1417],{"className":569,"code":1415,"filename":1416,"language":571,"meta":572,"style":572},"export default defineNuxtConfig({\n  modules: [\"tenoncms\u002Fnuxt\"],\n  runtimeConfig: {\n    tenonSecret: \"\",\n    tenonSiteUrl: \"\",\n  },\n});\n","nuxt.config.ts",[497,1418,1419,1432,1454,1463,1475,1486,1490],{"__ignoreMap":572},[576,1420,1421,1423,1425,1428,1430],{"class":578,"line":579},[576,1422,646],{"class":582},[576,1424,649],{"class":582},[576,1426,1427],{"class":652}," defineNuxtConfig",[576,1429,655],{"class":590},[576,1431,658],{"class":586},[576,1433,1434,1437,1439,1442,1444,1447,1449,1452],{"class":578,"line":613},[576,1435,1436],{"class":664},"  modules",[576,1438,668],{"class":586},[576,1440,1441],{"class":590}," [",[576,1443,607],{"class":586},[576,1445,1446],{"class":603},"tenoncms\u002Fnuxt",[576,1448,607],{"class":586},[576,1450,1451],{"class":590},"]",[576,1453,685],{"class":586},[576,1455,1456,1459,1461],{"class":578,"line":636},[576,1457,1458],{"class":664},"  runtimeConfig",[576,1460,668],{"class":586},[576,1462,863],{"class":586},[576,1464,1465,1468,1470,1473],{"class":578,"line":643},[576,1466,1467],{"class":664},"    tenonSecret",[576,1469,668],{"class":586},[576,1471,1472],{"class":586}," \"\"",[576,1474,685],{"class":586},[576,1476,1477,1480,1482,1484],{"class":578,"line":661},[576,1478,1479],{"class":664},"    tenonSiteUrl",[576,1481,668],{"class":586},[576,1483,1472],{"class":586},[576,1485,685],{"class":586},[576,1487,1488],{"class":578,"line":688},[576,1489,938],{"class":586},[576,1491,1492,1494,1496],{"class":578,"line":712},[576,1493,715],{"class":586},[576,1495,682],{"class":590},[576,1497,610],{"class":586},[567,1499,1501],{"className":569,"code":1500,"filename":499,"language":571,"meta":572,"style":572},"const config = useRuntimeConfig();\n\nexport default defineCms({\n  secret: config.tenonSecret,\n  site: { url: config.tenonSiteUrl || undefined, name: \"My Site\" },\n  \u002F\u002F ...\n});\n",[497,1502,1503,1523,1527,1539,1554,1591,1595],{"__ignoreMap":572},[576,1504,1505,1509,1512,1515,1518,1521],{"class":578,"line":579},[576,1506,1508],{"class":1507},"spNyl","const",[576,1510,1511],{"class":590}," config ",[576,1513,1514],{"class":586},"=",[576,1516,1517],{"class":652}," useRuntimeConfig",[576,1519,1520],{"class":590},"()",[576,1522,610],{"class":586},[576,1524,1525],{"class":578,"line":613},[576,1526,640],{"emptyLinePlaceholder":639},[576,1528,1529,1531,1533,1535,1537],{"class":578,"line":636},[576,1530,646],{"class":582},[576,1532,649],{"class":582},[576,1534,591],{"class":652},[576,1536,655],{"class":590},[576,1538,658],{"class":586},[576,1540,1541,1543,1545,1548,1550,1552],{"class":578,"line":643},[576,1542,691],{"class":664},[576,1544,668],{"class":586},[576,1546,1547],{"class":590}," config",[576,1549,491],{"class":586},[576,1551,1408],{"class":590},[576,1553,685],{"class":586},[576,1555,1556,1558,1560,1562,1564,1566,1568,1570,1573,1576,1579,1581,1583,1585,1587,1589],{"class":578,"line":661},[576,1557,1344],{"class":664},[576,1559,668],{"class":586},[576,1561,587],{"class":586},[576,1563,1351],{"class":664},[576,1565,668],{"class":586},[576,1567,1547],{"class":590},[576,1569,491],{"class":586},[576,1571,1572],{"class":590},"tenonSiteUrl ",[576,1574,1575],{"class":586},"||",[576,1577,1578],{"class":586}," undefined,",[576,1580,1360],{"class":664},[576,1582,668],{"class":586},[576,1584,600],{"class":586},[576,1586,1367],{"class":603},[576,1588,607],{"class":586},[576,1590,920],{"class":586},[576,1592,1593],{"class":578,"line":688},[576,1594,1377],{"class":1376},[576,1596,1597,1599,1601],{"class":578,"line":712},[576,1598,715],{"class":586},[576,1600,682],{"class":590},[576,1602,610],{"class":586},[1045,1604,1605,1613],{"label":372},[484,1606,1607,1608,1398,1611,491],{},"Read the variables from ",[497,1609,1610],{},"process.env",[497,1612,499],{},[567,1614,1616],{"className":569,"code":1615,"filename":499,"language":571,"meta":572,"style":572},"export default defineCms({\n  secret: process.env.TENON_SECRET!,\n  site: { url: process.env.TENON_SITE_URL, name: \"My Site\" },\n  \u002F\u002F ...\n});\n",[497,1617,1618,1630,1648,1684,1688],{"__ignoreMap":572},[576,1619,1620,1622,1624,1626,1628],{"class":578,"line":579},[576,1621,646],{"class":582},[576,1623,649],{"class":582},[576,1625,591],{"class":652},[576,1627,655],{"class":590},[576,1629,658],{"class":586},[576,1631,1632,1634,1636,1638,1640,1642,1644,1646],{"class":578,"line":613},[576,1633,691],{"class":664},[576,1635,668],{"class":586},[576,1637,696],{"class":590},[576,1639,491],{"class":586},[576,1641,701],{"class":590},[576,1643,491],{"class":586},[576,1645,706],{"class":590},[576,1647,709],{"class":586},[576,1649,1650,1652,1654,1656,1658,1660,1662,1664,1666,1668,1670,1672,1674,1676,1678,1680,1682],{"class":578,"line":636},[576,1651,1344],{"class":664},[576,1653,668],{"class":586},[576,1655,587],{"class":586},[576,1657,1351],{"class":664},[576,1659,668],{"class":586},[576,1661,696],{"class":590},[576,1663,491],{"class":586},[576,1665,701],{"class":590},[576,1667,491],{"class":586},[576,1669,1027],{"class":590},[576,1671,908],{"class":586},[576,1673,1360],{"class":664},[576,1675,668],{"class":586},[576,1677,600],{"class":586},[576,1679,1367],{"class":603},[576,1681,607],{"class":586},[576,1683,920],{"class":586},[576,1685,1686],{"class":578,"line":643},[576,1687,1377],{"class":1376},[576,1689,1690,1692,1694],{"class":578,"line":661},[576,1691,715],{"class":586},[576,1693,682],{"class":590},[576,1695,610],{"class":586},[484,1697,1698,1699,1702,1703,1706,1707,1710],{},"In development, the dev server loads ",[497,1700,1701],{},".env",". In production, ",[497,1704,1705],{},"npm start"," loads it with Node's ",[497,1708,1709],{},"--env-file-if-exists=.env",", or you set the variables on the host.",[1712,1713,1715],"h3",{"id":1714},"site-url","Site URL",[484,1717,1718,1720,1721,1724,1725,1728],{},[497,1719,1035],{}," is the public origin of your site, like ",[497,1722,1723],{},"https:\u002F\u002Fexample.com",". It has no path. The sitemap, ",[497,1726,1727],{},"robots.txt",", preview links, sign-in and links into the admin use it.",[484,1730,1731,1732,1735],{},"Leave it unset in development. Tenon then uses the origin of each request, so ",[497,1733,1734],{},"localhost"," works on any port. Set it in production.",[484,1737,1738,1741],{},[497,1739,1740],{},"site.name"," is the name the admin, emails and passkeys show.",[1743,1744,1745,1746,1749,1750,491],"note",{},"If your site and the CMS run on different origins, also set ",[497,1747,1748],{},"auth.baseURL"," to the CMS origin. See ",[488,1751,201],{"href":202},[1712,1753,1755],{"id":1754},"variables-of-the-cli","Variables of the CLI",[484,1757,536,1758,1760],{},[497,1759,539],{}," CLI reads two more, to work against a deployed site instead of the local config:",[513,1762,1763,1769],{},[516,1764,1765,1768],{},[497,1766,1767],{},"TENON_URL",": the URL of the deployed site.",[516,1770,1771,1774],{},[497,1772,1773],{},"TENON_API_KEY",": an API key for that site.",[484,1776,1777,1778,491],{},"See ",[488,1779,1780],{"href":452},"the CLI",[493,1782,1784],{"id":1783},"how-vite-fits-in","How Vite fits in",[484,1786,1787,1788,1790],{},"Tenon runs inside your app. ",[497,1789,499],{}," is a normal module: a server route imports it, and your app's Vite build compiles it like any other file.",[513,1792,1793,1799],{},[516,1794,1795,1798],{},[519,1796,1797],{},"Astro and Nuxt",": the integration adds the routes and the admin for you.",[516,1800,1801,1804,1805,1808,1809,1812],{},[519,1802,1803],{},"TanStack Start and other Vite frameworks",": ",[497,1806,1807],{},"tenonAdmin()"," from ",[497,1810,1811],{},"tenoncms\u002Fvite"," builds the admin, and you write the route files.",[484,1814,1815,1817],{},[488,1816,32],{"href":33}," explains what happens under the hood.",[493,1819,1821],{"id":1820},"routes-tenon-adds","Routes Tenon adds",[981,1823,1824,1834],{},[984,1825,1826],{},[987,1827,1828,1831],{},[990,1829,1830],{},"Route",[990,1832,1833],{},"Serves",[1000,1835,1836,1846,1863,1880],{},[987,1837,1838,1843],{},[1005,1839,1840],{},[497,1841,1842],{},"\u002F_tenon\u002F*",[1005,1844,1845],{},"The HTTP API: content, media files, sign-in, users and the admin's data.",[987,1847,1848,1853],{},[1005,1849,1850],{},[497,1851,1852],{},"\u002Fadmin",[1005,1854,1855,1856,1859,1860,491],{},"The admin. Change the path with ",[497,1857,1858],{},"admin.path",", or turn it off with ",[497,1861,1862],{},"admin: false",[987,1864,1865,1870],{},[1005,1866,1867],{},[497,1868,1869],{},"\u002Fsitemap.xml",[1005,1871,1872,1873,1876,1877,491],{},"Every published document of each collection with a ",[497,1874,1875],{},"permalink",". Turn it off with ",[497,1878,1879],{},"sitemap: false",[987,1881,1882,1887],{},[1005,1883,1884],{},[497,1885,1886],{},"\u002Frobots.txt",[1005,1888,1889,1890,1893,1894,491],{},"Allows the site except ",[497,1891,1892],{},"\u002F_tenon",", and points to the sitemap. Turn it off with ",[497,1895,1896],{},"robots: false",[484,1898,1899,1900,1902,1903,1905,1906,1909,1910,1912,1913,491],{},"Astro and Nuxt add all four. If your app already serves ",[497,1901,1869],{}," or ",[497,1904,1886],{},", Tenon leaves that route to your app. On TanStack Start, each route is a file in ",[497,1907,1908],{},"src\u002Froutes\u002F",", and the sitemap and ",[497,1911,1727],{}," need one more file each. See ",[488,1914,372],{"href":373},[484,1916,1917,1918,1920],{},"Every API route is listed in the ",[488,1919,341],{"href":342}," reference.",[1922,1923,1924],"style",{},"html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html .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 .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 .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}",{"title":572,"searchDepth":613,"depth":613,"links":1926},[1927,1928,1929,1933,1934],{"id":495,"depth":613,"text":499},{"id":553,"depth":613,"text":554},{"id":972,"depth":613,"text":973,"children":1930},[1931,1932],{"id":1714,"depth":636,"text":1715},{"id":1754,"depth":636,"text":1755},{"id":1783,"depth":613,"text":1784},{"id":1820,"depth":613,"text":1821},"What tenon.config.ts is, the smallest config, the environment variables, how Vite fits in and the routes Tenon adds.","md",null,{},{"title":28,"description":1935},"5nghpfSQYL42jVwP-2tyLzQ9D0_4q321BoBEDnRjRhY",[1942,1944],{"title":24,"path":25,"stem":26,"description":1943,"children":-1},"Add Tenon to an Astro, Nuxt or TanStack Start app you already have.",{"title":32,"path":33,"stem":34,"description":1945,"children":-1},"What happens under the hood. One CMS instance in your app, the ways your code and the admin reach it, what runs at startup, and how Vite fits in.",1795884656507]