[{"data":1,"prerenderedAt":1113},["ShallowReactive",2],{"navigation_docs":3,"-docs-guide-deployment-node":478,"-docs-guide-deployment-node-surround":1108},[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":390,"body":480,"description":1102,"extension":1103,"links":1104,"meta":1105,"navigation":785,"path":391,"seo":1106,"stem":392,"__hash__":1107},"docs\u002Fdocs\u002F2.guide\u002F2.deployment\u002F1.node.md",{"type":481,"value":482,"toc":1093},"minimark",[483,487,492,527,531,534,618,651,655,658,738,741,877,886,890,893,973,987,993,997,1007,1010,1022,1025,1029,1048,1052,1089],[484,485,486],"p",{},"On Node, Tenon runs inside your site's server process. This page shows how to build and start it, where the data lives, and what to set in production.",[488,489,491],"h2",{"id":490},"before-you-start","Before you start",[493,494,495,499,516],"ul",{},[496,497,498],"li",{},"Node 24 or newer on the server.",[496,500,501,502,506,507,510,511,515],{},"A project from ",[503,504,505],"code",{},"npm create tenoncms@latest"," with the target ",[508,509,390],"strong",{},", or a site set up as in ",[512,513,514],"a",{"href":25},"Add to an existing site",".",[496,517,518,519,522,523,526],{},"Astro needs the Node adapter, ",[503,520,521],{},"@astrojs\u002Fnode",", in ",[503,524,525],{},"standalone"," mode. Nuxt, TanStack Start and Standalone build a Node server by default.",[488,528,530],{"id":529},"build-and-start","Build and start",[484,532,533],{},"Build the site, then start its server:",[535,536,538,575,597],"code-group",{"sync":537},"framework",[539,540,545],"pre",{"className":541,"code":542,"filename":364,"language":543,"meta":544,"style":544},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","npm run build\nnode --env-file-if-exists=.env .\u002Fdist\u002Fserver\u002Fentry.mjs\n","bash","",[503,546,547,563],{"__ignoreMap":544},[548,549,552,556,560],"span",{"class":550,"line":551},"line",1,[548,553,555],{"class":554},"sBMFI","npm",[548,557,559],{"class":558},"sfazB"," run",[548,561,562],{"class":558}," build\n",[548,564,566,569,572],{"class":550,"line":565},2,[548,567,568],{"class":554},"node",[548,570,571],{"class":558}," --env-file-if-exists=.env",[548,573,574],{"class":558}," .\u002Fdist\u002Fserver\u002Fentry.mjs\n",[539,576,578],{"className":541,"code":577,"filename":368,"language":543,"meta":544,"style":544},"npm run build\nnode --env-file-if-exists=.env .output\u002Fserver\u002Findex.mjs\n",[503,579,580,588],{"__ignoreMap":544},[548,581,582,584,586],{"class":550,"line":551},[548,583,555],{"class":554},[548,585,559],{"class":558},[548,587,562],{"class":558},[548,589,590,592,594],{"class":550,"line":565},[548,591,568],{"class":554},[548,593,571],{"class":558},[548,595,596],{"class":558}," .output\u002Fserver\u002Findex.mjs\n",[539,598,600],{"className":541,"code":577,"filename":599,"language":543,"meta":544,"style":544},"TanStack Start, Standalone",[503,601,602,610],{"__ignoreMap":544},[548,603,604,606,608],{"class":550,"line":551},[548,605,555],{"class":554},[548,607,559],{"class":558},[548,609,562],{"class":558},[548,611,612,614,616],{"class":550,"line":565},[548,613,568],{"class":554},[548,615,571],{"class":558},[548,617,596],{"class":558},[493,619,620,626,636,646],{},[496,621,622,623,515],{},"The starters add the start command as ",[503,624,625],{},"npm start",[496,627,628,631,632,635],{},[503,629,630],{},"--env-file-if-exists=.env"," loads ",[503,633,634],{},".env"," when it exists. Variables set on the host work too.",[496,637,638,639,642,643,515],{},"The server listens on ",[503,640,641],{},"PORT",". In a container, also set ",[503,644,645],{},"HOST=0.0.0.0",[496,647,648,649,515],{},"Jobs need no setup. The Nitro task of Nuxt, TanStack Start and Standalone runs every minute. On Astro, a timer starts with the first request. See ",[512,650,281],{"href":282},[488,652,654],{"id":653},"keep-the-data","Keep the data",[484,656,657],{},"The database and the uploads MUST live on a disk that survives a redeploy. A container's own filesystem goes away with the container, so mount a volume:",[659,660,661,677],"table",{},[662,663,664],"thead",{},[665,666,667,671,674],"tr",{},[668,669,670],"th",{},"What",[668,672,673],{},"Where by default",[668,675,676],{},"Set with",[678,679,680,704,719],"tbody",{},[665,681,682,686,691],{},[683,684,685],"td",{},"SQLite or libSQL",[683,687,688],{},[503,689,690],{},".\u002Fcms.db",[683,692,693,696,697,700,701],{},[503,694,695],{},"DATABASE_URL"," (",[503,698,699],{},"file:\u002Fvar\u002Flib\u002Fmy-site\u002Fcms.db",") or ",[503,702,703],{},"DATABASE_PATH",[665,705,706,709,714],{},[683,707,708],{},"PGlite",[683,710,711],{},[503,712,713],{},".\u002F.pglite",[683,715,716],{},[503,717,718],{},"DATABASE_DIR",[665,720,721,724,729],{},[683,722,723],{},"Media files",[683,725,726],{},[503,727,728],{},".\u002F.uploads",[683,730,731,734,735],{},[503,732,733],{},"dir"," of ",[503,736,737],{},"local()",[484,739,740],{},"Relative paths start at the working directory of the process. Use absolute paths in production, so a start from another folder finds the same data.",[539,742,747],{"className":743,"code":744,"filename":745,"language":746,"meta":544,"style":544},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { local } from \"tenoncms\u002Fmedia\u002Flocal\";\n\nexport default defineCms({\n  \u002F\u002F ...\n  media: {\n    storage: local({ dir: \"\u002Fvar\u002Flib\u002Fmy-site\u002Fuploads\" }),\n  },\n});\n","tenon.config.ts","ts",[503,748,749,781,787,806,813,826,861,867],{"__ignoreMap":544},[548,750,751,755,759,763,766,769,772,775,778],{"class":550,"line":551},[548,752,754],{"class":753},"s7zQu","import",[548,756,758],{"class":757},"sMK4o"," {",[548,760,762],{"class":761},"sTEyZ"," local",[548,764,765],{"class":757}," }",[548,767,768],{"class":753}," from",[548,770,771],{"class":757}," \"",[548,773,774],{"class":558},"tenoncms\u002Fmedia\u002Flocal",[548,776,777],{"class":757},"\"",[548,779,780],{"class":757},";\n",[548,782,783],{"class":550,"line":565},[548,784,786],{"emptyLinePlaceholder":785},true,"\n",[548,788,790,793,796,800,803],{"class":550,"line":789},3,[548,791,792],{"class":753},"export",[548,794,795],{"class":753}," default",[548,797,799],{"class":798},"s2Zo4"," defineCms",[548,801,802],{"class":761},"(",[548,804,805],{"class":757},"{\n",[548,807,809],{"class":550,"line":808},4,[548,810,812],{"class":811},"sHwdD","  \u002F\u002F ...\n",[548,814,816,820,823],{"class":550,"line":815},5,[548,817,819],{"class":818},"swJcz","  media",[548,821,822],{"class":757},":",[548,824,825],{"class":757}," {\n",[548,827,829,832,834,836,838,841,844,846,848,851,853,855,858],{"class":550,"line":828},6,[548,830,831],{"class":818},"    storage",[548,833,822],{"class":757},[548,835,762],{"class":798},[548,837,802],{"class":761},[548,839,840],{"class":757},"{",[548,842,843],{"class":818}," dir",[548,845,822],{"class":757},[548,847,771],{"class":757},[548,849,850],{"class":558},"\u002Fvar\u002Flib\u002Fmy-site\u002Fuploads",[548,852,777],{"class":757},[548,854,765],{"class":757},[548,856,857],{"class":761},")",[548,859,860],{"class":757},",\n",[548,862,864],{"class":550,"line":863},7,[548,865,866],{"class":757},"  },\n",[548,868,870,873,875],{"class":550,"line":869},8,[548,871,872],{"class":757},"}",[548,874,857],{"class":761},[548,876,780],{"class":757},[484,878,879,880,882,883,515],{},"To run more than one server, every server MUST see the same data. Use a database server, like Postgres or Turso, and a bucket, like S3 or R2. A disk on one server does not reach the others. See ",[512,881,406],{"href":407}," and ",[512,884,885],{"href":411},"Media storage",[488,887,889],{"id":888},"set-the-environment","Set the environment",[484,891,892],{},"The starters use these names:",[659,894,895,905],{},[662,896,897],{},[665,898,899,902],{},[668,900,901],{},"Variable",[668,903,904],{},"What it is",[678,906,907,920,933,942,952,964],{},[665,908,909,914],{},[683,910,911],{},[503,912,913],{},"TENON_SECRET",[683,915,916,917],{},"Signs sessions. At least 32 characters: ",[503,918,919],{},"openssl rand -hex 32",[665,921,922,927],{},[683,923,924],{},[503,925,926],{},"TENON_SITE_URL",[683,928,929,930],{},"The public origin, like ",[503,931,932],{},"https:\u002F\u002Fexample.com",[665,934,935,939],{},[683,936,937],{},[503,938,695],{},[683,940,941],{},"libSQL or Postgres: a file, a Turso URL or a Postgres URL",[665,943,944,949],{},[683,945,946],{},[503,947,948],{},"DATABASE_AUTH_TOKEN",[683,950,951],{},"libSQL: the Turso token. A file needs none",[665,953,954,958],{},[683,955,956],{},[503,957,703],{},[683,959,960,963],{},[503,961,962],{},"sqlite()",": the SQLite file",[665,965,966,970],{},[683,967,968],{},[503,969,718],{},[683,971,972],{},"PGlite: the folder of the database",[484,974,975,976,979,980,983,984,515],{},"In Nuxt, each variable has the ",[503,977,978],{},"NUXT_"," prefix, like ",[503,981,982],{},"NUXT_TENON_SECRET",". A bucket, an image service and email add their own variables. The starter lists all of them in ",[503,985,986],{},".env.example",[484,988,989,990,992],{},"Leave ",[503,991,926],{}," unset in development only. In production, sign-in and every link in an email use it.",[488,994,996],{"id":995},"put-a-reverse-proxy-in-front","Put a reverse proxy in front",[484,998,999,1000,1002,1003,1006],{},"Serve the site over HTTPS, for example behind nginx or Caddy. Set ",[503,1001,926],{}," to the ",[503,1004,1005],{},"https"," origin the visitor sees, not to the port of the Node server.",[484,1008,1009],{},"With the local disk, every upload part goes through your server, up to 16 MB each. The body limit of the proxy MUST be larger, for example in nginx:",[539,1011,1016],{"className":1012,"code":1013,"filename":1014,"language":1015,"meta":544,"style":544},"language-nginx shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","client_max_body_size 20m;\n","nginx.conf","nginx",[503,1017,1018],{"__ignoreMap":544},[548,1019,1020],{"class":550,"line":551},[548,1021,1013],{},[484,1023,1024],{},"A bucket does not need this. The browser uploads straight to it.",[488,1026,1028],{"id":1027},"install-on-the-servers-platform","Install on the server's platform",[484,1030,1031,1032,1035,1036,1039,1040,1043,1044,1047],{},"Some packages ship native code for one operating system and CPU: ",[503,1033,1034],{},"@libsql\u002Fclient"," for SQLite and Turso, and sharp for the ",[503,1037,1038],{},"ipx"," image provider. Install the dependencies and build on the same platform the server runs on. In a container, run ",[503,1041,1042],{},"npm ci"," and the build inside the image. Do not copy ",[503,1045,1046],{},"node_modules"," from your machine.",[488,1049,1051],{"id":1050},"related-resources","Related resources",[493,1053,1054,1060,1065,1070,1076],{},[496,1055,1056,1059],{},[512,1057,1058],{"href":385},"Deployment overview",": what every deployment needs, and a checklist.",[496,1061,1062,1064],{},[512,1063,406],{"href":407},": SQLite, Turso, Postgres and PGlite.",[496,1066,1067,1069],{},[512,1068,885],{"href":411},": the local disk, S3 and R2.",[496,1071,1072,1075],{},[512,1073,1074],{"href":308},"Backup and restore",": back up the database and the uploads.",[496,1077,1078,1081,1082,1085,1086,515],{},[512,1079,1080],{"href":452},"The CLI",": run ",[503,1083,1084],{},"tenon"," on the server, or against it with ",[503,1087,1088],{},"--url",[1090,1091,1092],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .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 .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}",{"title":544,"searchDepth":565,"depth":565,"links":1094},[1095,1096,1097,1098,1099,1100,1101],{"id":490,"depth":565,"text":491},{"id":529,"depth":565,"text":530},{"id":653,"depth":565,"text":654},{"id":888,"depth":565,"text":889},{"id":995,"depth":565,"text":996},{"id":1027,"depth":565,"text":1028},{"id":1050,"depth":565,"text":1051},"Run Tenon on a server or in a container.","md",null,{},{"title":390,"description":1102},"uVT1xe2PCcVjxGcWD9PTMzF55Hy2D7ydvsKk8XC98Wk",[1109,1111],{"title":50,"path":385,"stem":386,"description":1110,"children":-1},"What a deployed Tenon site needs, and which guide to follow.",{"title":394,"path":395,"stem":396,"description":1112,"children":-1},"Run Tenon in Vercel functions with Postgres or Turso and a bucket.",1795884703883]