[{"data":1,"prerenderedAt":780},["ShallowReactive",2],{"navigation":3,"-deploy-providers-zerops":217,"-deploy-providers-zerops-surround":776},[4,83,208,214],{"title":5,"path":6,"stem":7,"children":8,"icon":82},"","/docs","1.docs/1.index",[9,12,17,22,27,32,37,42,47,52,57,62,67,72,77],{"title":10,"path":6,"stem":7,"icon":11},"Introduction","i-lucide-compass",{"title":13,"path":14,"stem":15,"icon":16},"Quick Start","/docs/quick-start","1.docs/2.quick-start","i-lucide-zap",{"title":18,"path":19,"stem":20,"icon":21},"Renderer","/docs/renderer","1.docs/4.renderer","ri:layout-masonry-line",{"title":23,"path":24,"stem":25,"icon":26},"Routing","/docs/routing","1.docs/5.routing","ri:direction-line",{"title":28,"path":29,"stem":30,"icon":31},"Assets","/docs/assets","1.docs/50.assets","ri:image-2-line",{"title":33,"path":34,"stem":35,"icon":36},"Configuration","/docs/configuration","1.docs/50.configuration","ri:settings-3-line",{"title":38,"path":39,"stem":40,"icon":41},"Database","/docs/database","1.docs/50.database","ri:database-2-line",{"title":43,"path":44,"stem":45,"icon":46},"Lifecycle","/docs/lifecycle","1.docs/50.lifecycle","i-lucide-layers",{"title":48,"path":49,"stem":50,"icon":51},"Plugins","/docs/plugins","1.docs/50.plugins","ri:plug-line",{"title":53,"path":54,"stem":55,"icon":56},"Tasks","/docs/tasks","1.docs/50.tasks","codicon:run-all",{"title":58,"path":59,"stem":60,"icon":61},"Server Entry","/docs/server-entry","1.docs/6.server-entry","ri:server-line",{"title":63,"path":64,"stem":65,"icon":66},"Cache","/docs/cache","1.docs/7.cache","ri:speed-line",{"title":68,"path":69,"stem":70,"icon":71},"KV Storage","/docs/storage","1.docs/8.storage","carbon:datastore",{"title":73,"path":74,"stem":75,"icon":76},"Migration Guide","/docs/migration","1.docs/99.migration","ri:arrow-right-up-line",{"title":78,"path":79,"stem":80,"icon":81},"Nightly Channel","/docs/nightly","1.docs/99.nightly","ri:moon-fill","i-lucide-book-open",{"title":84,"path":85,"stem":86,"children":87,"icon":89},"Deploy","/deploy","2.deploy/0.index",[88,90,111],{"title":84,"path":85,"stem":86,"icon":89},"ri:upload-cloud-2-line",{"title":91,"path":92,"stem":93,"children":94,"page":110},"Runtimes","/deploy/runtimes","2.deploy/10.runtimes",[95,100,105],{"title":96,"path":97,"stem":98,"icon":99},"Node.js","/deploy/runtimes/node","2.deploy/10.runtimes/1.node","akar-icons:node-fill",{"title":101,"path":102,"stem":103,"icon":104},"Bun","/deploy/runtimes/bun","2.deploy/10.runtimes/bun","simple-icons:bun",{"title":106,"path":107,"stem":108,"icon":109},"Deno","/deploy/runtimes/deno","2.deploy/10.runtimes/deno","simple-icons:deno",false,{"title":112,"path":113,"stem":114,"children":115,"page":110},"Providers","/deploy/providers","2.deploy/20.providers",[116,120,124,128,132,136,140,144,148,152,156,160,164,168,172,176,180,184,188,192,196,200,204],{"title":117,"path":118,"stem":119},"Alwaysdata","/deploy/providers/alwaysdata","2.deploy/20.providers/alwaysdata",{"title":121,"path":122,"stem":123},"AWS Lambda","/deploy/providers/aws","2.deploy/20.providers/aws",{"title":125,"path":126,"stem":127},"AWS Amplify","/deploy/providers/aws-amplify","2.deploy/20.providers/aws-amplify",{"title":129,"path":130,"stem":131},"Azure","/deploy/providers/azure","2.deploy/20.providers/azure",{"title":133,"path":134,"stem":135},"Cleavr","/deploy/providers/cleavr","2.deploy/20.providers/cleavr",{"title":137,"path":138,"stem":139},"Cloudflare","/deploy/providers/cloudflare","2.deploy/20.providers/cloudflare",{"title":141,"path":142,"stem":143},"Deno Deploy","/deploy/providers/deno-deploy","2.deploy/20.providers/deno-deploy",{"title":145,"path":146,"stem":147},"DigitalOcean","/deploy/providers/digitalocean","2.deploy/20.providers/digitalocean",{"title":149,"path":150,"stem":151},"Firebase","/deploy/providers/firebase","2.deploy/20.providers/firebase",{"title":153,"path":154,"stem":155},"Flightcontrol","/deploy/providers/flightcontrol","2.deploy/20.providers/flightcontrol",{"title":157,"path":158,"stem":159},"Genezio","/deploy/providers/genezio","2.deploy/20.providers/genezio",{"title":161,"path":162,"stem":163},"GitHub Pages","/deploy/providers/github-pages","2.deploy/20.providers/github-pages",{"title":165,"path":166,"stem":167},"GitLab Pages","/deploy/providers/gitlab-pages","2.deploy/20.providers/gitlab-pages",{"title":169,"path":170,"stem":171},"Heroku","/deploy/providers/heroku","2.deploy/20.providers/heroku",{"title":173,"path":174,"stem":175},"IIS","/deploy/providers/iis","2.deploy/20.providers/iis",{"title":177,"path":178,"stem":179},"Koyeb","/deploy/providers/koyeb","2.deploy/20.providers/koyeb",{"title":181,"path":182,"stem":183},"Netlify","/deploy/providers/netlify","2.deploy/20.providers/netlify",{"title":185,"path":186,"stem":187},"Platform.sh","/deploy/providers/platform-sh","2.deploy/20.providers/platform-sh",{"title":189,"path":190,"stem":191},"Render.com","/deploy/providers/render","2.deploy/20.providers/render",{"title":193,"path":194,"stem":195},"StormKit","/deploy/providers/stormkit","2.deploy/20.providers/stormkit",{"title":197,"path":198,"stem":199},"Vercel","/deploy/providers/vercel","2.deploy/20.providers/vercel",{"title":201,"path":202,"stem":203},"Zeabur","/deploy/providers/zeabur","2.deploy/20.providers/zeabur",{"title":205,"path":206,"stem":207},"Zerops","/deploy/providers/zerops","2.deploy/20.providers/zerops",{"title":209,"path":210,"stem":211,"children":212,"icon":36},"Config","/config","3.config/0.index",[213],{"title":209,"path":210,"stem":211,"icon":36},{"title":5,"path":215,"stem":216},"/","index",{"id":218,"title":205,"body":219,"description":770,"extension":771,"meta":772,"navigation":773,"path":206,"seo":774,"stem":207,"__hash__":775},"content/2.deploy/20.providers/zerops.md",{"type":220,"value":221,"toc":765},"minimark",[222,234,239,245,248,253,274,278,291,418,425,698,718,722,731,734,738,744,747,757,761],[223,224,225,229,230],"p",{},[226,227,228],"strong",{},"Preset:"," ",[231,232,233],"code",{},"zerops",[235,236],"read-more",{"title":237,"to":238},"zerops.io","https://zerops.io",[240,241,242],"important",{},[223,243,244],{},"\n🚧 This preset is currently experimental.",[223,246,247],{},"Zerops supports deploying both static and server-side rendered apps with a simple configuration file in your project root.",[249,250,252],"h2",{"id":251},"starter-templates","Starter templates",[223,254,255,256,265,266,273],{},"If you want to quckly get started with zerops and nitro you can use repositories ",[257,258,262],"a",{"href":259,"rel":260},"https://github.com/zeropsio/recipe-nitro-nodejs",[261],"nofollow",[231,263,264],{},"zeropsio/recipe-nitro-nodejs"," and ",[257,267,270],{"href":268,"rel":269},"https://github.com/zeropsio/recipe-nitro-static",[261],[231,271,272],{},"zeropsio/recipe-nitro-static"," starter templates.",[249,275,277],{"id":276},"project-setup","Project setup",[223,279,280,281,286,287,290],{},"Projects and services can be added either through ",[257,282,285],{"href":283,"rel":284},"https://app.zerops.io/dashboard/project-add",[261],"project add wizard"," or imported using ",[231,288,289],{},"zerops-project-import.yml",".",[292,293,294,369],"code-group",{},[295,296,301],"pre",{"className":297,"code":298,"filename":299,"language":300,"meta":5,"style":5},"language-yml shiki shiki-themes github-light github-dark github-dark","project:\n  name: nitro-app\n\nservices:\n  - hostname: app\n    type: nodejs@20\n","zerops-project-import.yml (node.js)","yml",[231,302,303,316,329,336,344,358],{"__ignoreMap":5},[304,305,308,312],"span",{"class":306,"line":307},"line",1,[304,309,311],{"class":310},"sByVh","project",[304,313,315],{"class":314},"slsVL",":\n",[304,317,319,322,325],{"class":306,"line":318},2,[304,320,321],{"class":310},"  name",[304,323,324],{"class":314},": ",[304,326,328],{"class":327},"sfrk1","nitro-app\n",[304,330,332],{"class":306,"line":331},3,[304,333,335],{"emptyLinePlaceholder":334},true,"\n",[304,337,339,342],{"class":306,"line":338},4,[304,340,341],{"class":310},"services",[304,343,315],{"class":314},[304,345,347,350,353,355],{"class":306,"line":346},5,[304,348,349],{"class":314},"  - ",[304,351,352],{"class":310},"hostname",[304,354,324],{"class":314},[304,356,357],{"class":327},"app\n",[304,359,361,364,366],{"class":306,"line":360},6,[304,362,363],{"class":310},"    type",[304,365,324],{"class":314},[304,367,368],{"class":327},"nodejs@20\n",[295,370,373],{"className":297,"code":371,"filename":372,"language":300,"meta":5,"style":5},"project:\n  name: nitro-app\n\nservices:\n  - hostname: app\n    type: static\n","zerops-project-import.yml (static)",[231,374,375,381,389,393,399,409],{"__ignoreMap":5},[304,376,377,379],{"class":306,"line":307},[304,378,311],{"class":310},[304,380,315],{"class":314},[304,382,383,385,387],{"class":306,"line":318},[304,384,321],{"class":310},[304,386,324],{"class":314},[304,388,328],{"class":327},[304,390,391],{"class":306,"line":331},[304,392,335],{"emptyLinePlaceholder":334},[304,394,395,397],{"class":306,"line":338},[304,396,341],{"class":310},[304,398,315],{"class":314},[304,400,401,403,405,407],{"class":306,"line":346},[304,402,349],{"class":314},[304,404,352],{"class":310},[304,406,324],{"class":314},[304,408,357],{"class":327},[304,410,411,413,415],{"class":306,"line":360},[304,412,363],{"class":310},[304,414,324],{"class":314},[304,416,417],{"class":327},"static\n",[223,419,420,421,424],{},"Then create a ",[231,422,423],{},"zerops.yml"," config in your project root:",[292,426,427,601],{},[295,428,431],{"className":297,"code":429,"filename":430,"language":300,"meta":5,"style":5},"zerops:\n  - setup: app\n    build:\n      base: nodejs@20\n      envVariables:\n        SERVER_PRESET: zerops\n      buildCommands:\n        - pnpm i\n        - pnpm run build\n      deployFiles:\n        - .output\n        - package.json\n        - node_modules\n    run:\n      base: nodejs@20\n      ports:\n        - port: 3000\n          httpSupport: true\n      start: node .output/server/index.mjs\n","zerops.yml (node.js)",[231,432,433,439,450,457,466,473,483,491,500,508,516,524,532,540,548,557,565,579,590],{"__ignoreMap":5},[304,434,435,437],{"class":306,"line":307},[304,436,233],{"class":310},[304,438,315],{"class":314},[304,440,441,443,446,448],{"class":306,"line":318},[304,442,349],{"class":314},[304,444,445],{"class":310},"setup",[304,447,324],{"class":314},[304,449,357],{"class":327},[304,451,452,455],{"class":306,"line":331},[304,453,454],{"class":310},"    build",[304,456,315],{"class":314},[304,458,459,462,464],{"class":306,"line":338},[304,460,461],{"class":310},"      base",[304,463,324],{"class":314},[304,465,368],{"class":327},[304,467,468,471],{"class":306,"line":346},[304,469,470],{"class":310},"      envVariables",[304,472,315],{"class":314},[304,474,475,478,480],{"class":306,"line":360},[304,476,477],{"class":310},"        SERVER_PRESET",[304,479,324],{"class":314},[304,481,482],{"class":327},"zerops\n",[304,484,486,489],{"class":306,"line":485},7,[304,487,488],{"class":310},"      buildCommands",[304,490,315],{"class":314},[304,492,494,497],{"class":306,"line":493},8,[304,495,496],{"class":314},"        - ",[304,498,499],{"class":327},"pnpm i\n",[304,501,503,505],{"class":306,"line":502},9,[304,504,496],{"class":314},[304,506,507],{"class":327},"pnpm run build\n",[304,509,511,514],{"class":306,"line":510},10,[304,512,513],{"class":310},"      deployFiles",[304,515,315],{"class":314},[304,517,519,521],{"class":306,"line":518},11,[304,520,496],{"class":314},[304,522,523],{"class":327},".output\n",[304,525,527,529],{"class":306,"line":526},12,[304,528,496],{"class":314},[304,530,531],{"class":327},"package.json\n",[304,533,535,537],{"class":306,"line":534},13,[304,536,496],{"class":314},[304,538,539],{"class":327},"node_modules\n",[304,541,543,546],{"class":306,"line":542},14,[304,544,545],{"class":310},"    run",[304,547,315],{"class":314},[304,549,551,553,555],{"class":306,"line":550},15,[304,552,461],{"class":310},[304,554,324],{"class":314},[304,556,368],{"class":327},[304,558,560,563],{"class":306,"line":559},16,[304,561,562],{"class":310},"      ports",[304,564,315],{"class":314},[304,566,568,570,573,575],{"class":306,"line":567},17,[304,569,496],{"class":314},[304,571,572],{"class":310},"port",[304,574,324],{"class":314},[304,576,578],{"class":577},"suiK_","3000\n",[304,580,582,585,587],{"class":306,"line":581},18,[304,583,584],{"class":310},"          httpSupport",[304,586,324],{"class":314},[304,588,589],{"class":577},"true\n",[304,591,593,596,598],{"class":306,"line":592},19,[304,594,595],{"class":310},"      start",[304,597,324],{"class":314},[304,599,600],{"class":327},"node .output/server/index.mjs\n",[295,602,605],{"className":297,"code":603,"filename":604,"language":300,"meta":5,"style":5},"zerops:\n  - setup: app\n    build:\n      base: nodejs@20\n      envVariables:\n        SERVER_PRESET: zerops-static\n      buildCommands:\n        - pnpm i\n        - pnpm build\n      deployFiles:\n        - .zerops/output/static/~\n    run:\n      base: static\n","zerops.yml (static)",[231,606,607,613,623,629,637,643,652,658,664,671,677,684,690],{"__ignoreMap":5},[304,608,609,611],{"class":306,"line":307},[304,610,233],{"class":310},[304,612,315],{"class":314},[304,614,615,617,619,621],{"class":306,"line":318},[304,616,349],{"class":314},[304,618,445],{"class":310},[304,620,324],{"class":314},[304,622,357],{"class":327},[304,624,625,627],{"class":306,"line":331},[304,626,454],{"class":310},[304,628,315],{"class":314},[304,630,631,633,635],{"class":306,"line":338},[304,632,461],{"class":310},[304,634,324],{"class":314},[304,636,368],{"class":327},[304,638,639,641],{"class":306,"line":346},[304,640,470],{"class":310},[304,642,315],{"class":314},[304,644,645,647,649],{"class":306,"line":360},[304,646,477],{"class":310},[304,648,324],{"class":314},[304,650,651],{"class":327},"zerops-static\n",[304,653,654,656],{"class":306,"line":485},[304,655,488],{"class":310},[304,657,315],{"class":314},[304,659,660,662],{"class":306,"line":493},[304,661,496],{"class":314},[304,663,499],{"class":327},[304,665,666,668],{"class":306,"line":502},[304,667,496],{"class":314},[304,669,670],{"class":327},"pnpm build\n",[304,672,673,675],{"class":306,"line":510},[304,674,513],{"class":310},[304,676,315],{"class":314},[304,678,679,681],{"class":306,"line":518},[304,680,496],{"class":314},[304,682,683],{"class":327},".zerops/output/static/~\n",[304,685,686,688],{"class":306,"line":526},[304,687,545],{"class":310},[304,689,315],{"class":314},[304,691,692,694,696],{"class":306,"line":534},[304,693,461],{"class":310},[304,695,324],{"class":314},[304,697,417],{"class":327},[223,699,700,701,705,706,711,712,717],{},"Now you can trigger the ",[257,702,704],{"href":703},"#building-deploying-your-app","build & deploy pipeline using the Zerops CLI"," or by connecting the app service with your ",[257,707,710],{"href":708,"rel":709},"https://docs.zerops.io/references/github-integration/",[261],"GitHub"," / ",[257,713,716],{"href":714,"rel":715},"https://docs.zerops.io/references/gitlab-integration",[261],"GitLab"," repository from inside the service detail.",[249,719,721],{"id":720},"build-and-deploy","Build and deploy",[223,723,724,725,730],{},"Open ",[257,726,729],{"href":727,"rel":728},"https://app.zerops.io/settings/token-management",[261],"Settings > Access Token Management"," in the Zerops app and generate a new access token.",[223,732,733],{},"Log in using your access token with the following command:",[735,736],"pm-x",{"command":737},"@zerops/zcli login \u003Ctoken>",[223,739,740,741,743],{},"Navigate to the root of your app (where ",[231,742,423],{}," is located) and run the following command to trigger the deploy:",[735,745],{"command":746},"@zerops/zcli push",[223,748,749,750,711,753,756],{},"Your code can be deployed automatically on each commit or a new tag by connecting the service with your ",[257,751,710],{"href":714,"rel":752},[261],[257,754,716],{"href":714,"rel":755},[261]," repository. This connection can be set up in the service detail.",[235,758],{"title":759,"to":760},"Zerops Documentation","https://docs.zerops.io/",[762,763,764],"style",{},"html pre.shiki code .sByVh, html code.shiki .sByVh{--shiki-light:#22863A;--shiki-default:#85E89D;--shiki-dark:#85E89D}html pre.shiki code .slsVL, html code.shiki .slsVL{--shiki-light:#24292E;--shiki-default:#E1E4E8;--shiki-dark:#E1E4E8}html pre.shiki code .sfrk1, html code.shiki .sfrk1{--shiki-light:#032F62;--shiki-default:#9ECBFF;--shiki-dark:#9ECBFF}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 .suiK_, html code.shiki .suiK_{--shiki-light:#005CC5;--shiki-default:#79B8FF;--shiki-dark:#79B8FF}",{"title":5,"searchDepth":318,"depth":318,"links":766},[767,768,769],{"id":251,"depth":318,"text":252},{"id":276,"depth":318,"text":277},{"id":720,"depth":318,"text":721},"Deploy Nitro apps to Zerops.","md",{},{},{"title":205,"description":770},"ms10yH5VHpbHmTvfW1mbLP2yAVXN5p_vp5JZbHKPYNU",[777,779],{"title":201,"path":202,"stem":203,"description":778,"children":-1},"Deploy Nitro apps to Zeabur.",{"title":209,"path":210,"stem":211,"description":5,"icon":36,"children":-1},1764005910708]