[{"data":1,"prerenderedAt":408},["ShallowReactive",2],{"docs:navigation":3,"docs:page:\u002Fdocs\u002Freference":115},[4],{"title":5,"path":6,"stem":7,"children":8,"icon":10},"Introduction","\u002Fdocs","docs\u002F1.index",[9,11,16,21,38,95,110],{"title":5,"path":6,"stem":7,"icon":10},"i-lucide-house",{"title":12,"path":13,"stem":14,"icon":15},"Quickstart","\u002Fdocs\u002Fquickstart","docs\u002F2.quickstart","i-lucide-rocket",{"title":17,"path":18,"stem":19,"icon":20},"Essentials","\u002Fdocs\u002Fconfiguration","docs\u002F3.configuration","i-lucide-book-open",{"title":22,"path":23,"stem":24,"children":25,"icon":27},"Authentication","\u002Fdocs\u002Fauthentication","docs\u002F4.authentication\u002Findex",[26,28,33],{"title":22,"path":23,"stem":24,"icon":27},"i-lucide-shield-check",{"title":29,"path":30,"stem":31,"icon":32},"Protect User Data","\u002Fdocs\u002Fauthentication\u002Fuser-data","docs\u002F4.authentication\u002F1.user-data","i-lucide-user-lock",{"title":34,"path":35,"stem":36,"icon":37},"Two-Factor Verification","\u002Fdocs\u002Fauthentication\u002Ftwo-factor","docs\u002F4.authentication\u002F2.two-factor","i-lucide-key-round",{"title":39,"path":40,"stem":41,"children":42,"icon":44},"Deployment","\u002Fdocs\u002Fdeployment","docs\u002F5.deployment\u002Findex",[43,45,50,55,60,65,70,75,80,85,90],{"title":39,"path":40,"stem":41,"icon":44},"i-lucide-cloud-upload",{"title":46,"path":47,"stem":48,"icon":49},"Deploy to Cloudflare","\u002Fdocs\u002Fdeployment\u002Fcloudflare","docs\u002F5.deployment\u002F1.cloudflare","i-simple-icons-cloudflare",{"title":51,"path":52,"stem":53,"icon":54},"Platform Support","\u002Fdocs\u002Fdeployment\u002Fsupport","docs\u002F5.deployment\u002F10.support","i-lucide-list-checks",{"title":56,"path":57,"stem":58,"icon":59},"Deploy to Vercel","\u002Fdocs\u002Fdeployment\u002Fvercel","docs\u002F5.deployment\u002F2.vercel","i-simple-icons-vercel",{"title":61,"path":62,"stem":63,"icon":64},"Deploy to Azure","\u002Fdocs\u002Fdeployment\u002Fazure","docs\u002F5.deployment\u002F3.azure","i-simple-icons-microsoftazure",{"title":66,"path":67,"stem":68,"icon":69},"Switch Hosts","\u002Fdocs\u002Fdeployment\u002Fswitch-hosts","docs\u002F5.deployment\u002F4.switch-hosts","i-lucide-arrow-right-left",{"title":71,"path":72,"stem":73,"icon":74},"Database and File Storage","\u002Fdocs\u002Fdeployment\u002Fdata-services","docs\u002F5.deployment\u002F5.data-services","i-lucide-database",{"title":76,"path":77,"stem":78,"icon":79},"Domains and Secrets","\u002Fdocs\u002Fdeployment\u002Fsettings","docs\u002F5.deployment\u002F6.settings","i-lucide-settings",{"title":81,"path":82,"stem":83,"icon":84},"Troubleshoot Deployment","\u002Fdocs\u002Fdeployment\u002Ftroubleshooting","docs\u002F5.deployment\u002F7.troubleshooting","i-lucide-wrench",{"title":86,"path":87,"stem":88,"icon":89},"Deploy Agents","\u002Fdocs\u002Fdeployment\u002Fagents","docs\u002F5.deployment\u002F8.agents","i-lucide-bot",{"title":91,"path":92,"stem":93,"icon":94},"Deploy Automations","\u002Fdocs\u002Fdeployment\u002Fautomations","docs\u002F5.deployment\u002F9.automations","i-lucide-workflow",{"title":96,"path":97,"stem":98,"children":99,"icon":101},"Connect Accounts","\u002Fdocs\u002Fconnect","docs\u002F6.connect\u002Findex",[100,102,106],{"title":96,"path":97,"stem":98,"icon":101},"i-lucide-plug",{"title":103,"path":104,"stem":105,"icon":37},"Connection Credentials","\u002Fdocs\u002Fconnect\u002Fcredentials","docs\u002F6.connect\u002F1.credentials",{"title":107,"path":108,"stem":109,"icon":84},"Connect MCP Servers","\u002Fdocs\u002Fconnect\u002Fmcp","docs\u002F6.connect\u002F2.mcp",{"title":111,"path":112,"stem":113,"icon":114},"Project Reference","\u002Fdocs\u002Freference","docs\u002F7.reference","i-lucide-terminal",{"page":116,"surround":405},{"id":117,"title":111,"body":118,"description":398,"extension":399,"links":400,"meta":401,"navigation":402,"path":112,"seo":403,"stem":113,"__hash__":404},"docs\u002Fdocs\u002F7.reference.md",{"type":119,"value":120,"toc":394},"minimark",[121,129,134,149,152,241,251,255,266,376,390],[122,123,124,125,128],"p",{},"Use this page when you need a command or config convention. For a first\nproject, start with the ",[126,127,12],"a",{"href":13},".",[130,131,133],"h2",{"id":132},"config-filename-and-export","Config Filename and Export",[122,135,136,137,141,142,145,146,148],{},"Use ",[138,139,140],"code",{},"cloud.config.ts"," in the project root. The CLI and Nuxt module also recognize\nthe legacy ",[138,143,144],{},"cloudconfig.config.ts"," name. If both exist, ",[138,147,140],{}," takes\nprecedence; keep one config file to avoid editing the unused one.",[122,150,151],{},"New projects use a named export:",[153,154,159],"pre",{"className":155,"code":156,"filename":140,"language":157,"meta":158,"style":158},"language-ts shiki shiki-themes github-light github-light github-dark","import { defineBackend, model, t } from '@cloudconfig\u002Fcore'\n\nexport const config = defineBackend({\n  models: { post: model({ title: t.text().required() }) },\n})\n","ts","",[138,160,161,181,188,211,235],{"__ignoreMap":158},[162,163,166,170,174,177],"span",{"class":164,"line":165},"line",1,[162,167,169],{"class":168},"s8jYJ","import",[162,171,173],{"class":172},"sxrX7"," { defineBackend, model, t } ",[162,175,176],{"class":168},"from",[162,178,180],{"class":179},"sIIMD"," '@cloudconfig\u002Fcore'\n",[162,182,184],{"class":164,"line":183},2,[162,185,187],{"emptyLinePlaceholder":186},true,"\n",[162,189,191,194,197,201,204,208],{"class":164,"line":190},3,[162,192,193],{"class":168},"export",[162,195,196],{"class":168}," const",[162,198,200],{"class":199},"sBjJW"," config",[162,202,203],{"class":168}," =",[162,205,207],{"class":206},"snPdu"," defineBackend",[162,209,210],{"class":172},"({\n",[162,212,214,217,220,223,226,229,232],{"class":164,"line":213},4,[162,215,216],{"class":172},"  models: { post: ",[162,218,219],{"class":206},"model",[162,221,222],{"class":172},"({ title: t.",[162,224,225],{"class":206},"text",[162,227,228],{"class":172},"().",[162,230,231],{"class":206},"required",[162,233,234],{"class":172},"() }) },\n",[162,236,238],{"class":164,"line":237},5,[162,239,240],{"class":172},"})\n",[122,242,243,246,247,250],{},[138,244,245],{},"export default defineBackend({ ... })"," is also supported. Choose either style;\nyou do not need to export both. With a default export, use\n",[138,248,249],{},"import type config from '.\u002Fcloud.config'"," for the typed client examples below.",[130,252,254],{"id":253},"common-commands","Common Commands",[122,256,257,258,261,262,265],{},"Run these commands from the project root. The ",[138,259,260],{},"db:*"," and ",[138,263,264],{},"doctor"," scripts are\nincluded in generated projects.",[267,268,269,282],"table",{},[270,271,272],"thead",{},[273,274,275,279],"tr",{},[276,277,278],"th",{},"Task",[276,280,281],{},"Command",[283,284,285,296,306,316,326,336,346,356,366],"tbody",{},[273,286,287,291],{},[288,289,290],"td",{},"Generate a migration after a model change",[288,292,293],{},[138,294,295],{},"pnpm db:generate",[273,297,298,301],{},[288,299,300],{},"Apply local migrations",[288,302,303],{},[138,304,305],{},"pnpm db:migrate",[273,307,308,311],{},[288,309,310],{},"Check local migration status",[288,312,313],{},[138,314,315],{},"pnpm db:status",[273,317,318,321],{},[288,319,320],{},"Check the config and local setup",[288,322,323],{},[138,324,325],{},"pnpm doctor",[273,327,328,331],{},[288,329,330],{},"Inspect sign-in settings",[288,332,333],{},[138,334,335],{},"pnpm exec cloudconfig auth status",[273,337,338,341],{},[288,339,340],{},"Inspect integration settings",[288,342,343],{},[138,344,345],{},"pnpm exec cloudconfig connect status",[273,347,348,351],{},[288,349,350],{},"Inspect the configured remote database",[288,352,353],{},[138,354,355],{},"pnpm exec cloudconfig db status --remote",[273,357,358,361],{},[288,359,360],{},"Preview deployment for the selected host",[288,362,363],{},[138,364,365],{},"pnpm exec cloudconfig deploy --dry-run",[273,367,368,371],{},[288,369,370],{},"Deploy the application",[288,372,373],{},[138,374,375],{},"pnpm exec cloudconfig deploy",[122,377,378,379,382,383,386,387,128],{},"For all options, run ",[138,380,381],{},"pnpm exec cloudconfig --help"," or add ",[138,384,385],{},"--help"," after a\ncommand, such as ",[138,388,389],{},"pnpm exec cloudconfig deploy --help",[391,392,393],"style",{},"html pre.shiki code .s8jYJ, html code.shiki .s8jYJ{--shiki-light:#D73A49;--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sxrX7, html code.shiki .sxrX7{--shiki-light:#24292E;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sIIMD, html code.shiki .sIIMD{--shiki-light:#032F62;--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sBjJW, html code.shiki .sBjJW{--shiki-light:#005CC5;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .snPdu, html code.shiki .snPdu{--shiki-light:#6F42C1;--shiki-default:#6F42C1;--shiki-dark:#B392F0}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":158,"searchDepth":183,"depth":183,"links":395},[396,397],{"id":132,"depth":183,"text":133},{"id":253,"depth":183,"text":254},"Look up config file conventions and common CLI commands.","md",null,{},{"icon":114},{"title":111,"description":398},"bIiMAswe6E7qd7tdE5UA3XRr44AIi6xdTHEzvJo0ql8",[406,400],{"title":107,"path":108,"stem":109,"description":407,"icon":84},"Authorize hosted MCP tools or reuse a provider account you already connected.",1792122403105]