[{"data":1,"prerenderedAt":645},["ShallowReactive",2],{"navigation":3,"-deploy-providers-koyeb":234,"-deploy-providers-koyeb-surround":640},[4,81,228],{"title":5,"path":6,"stem":7,"children":8,"icon":10},"Getting Started","/guide","1.guide/0.index",[9,11,16,21,26,31,36,41,46,51,56,61,66,71,76],{"title":5,"path":6,"stem":7,"icon":10},"ph:book-open-duotone",{"title":12,"path":13,"stem":14,"icon":15},"Migration Guide","/guide/migration","1.guide/00.migration","ri:arrow-right-up-line",{"title":17,"path":18,"stem":19,"icon":20},"Server Utils","/guide/utils","1.guide/1.utils","ri:tools-line",{"title":22,"path":23,"stem":24,"icon":25},"Tasks","/guide/tasks","1.guide/10.tasks","codicon:run-all",{"title":27,"path":28,"stem":29,"icon":30},"Server Routes","/guide/routing","1.guide/2.routing","ri:direction-line",{"title":32,"path":33,"stem":34,"icon":35},"WebSocket","/guide/websocket","1.guide/3.websocket","cib:socket-io",{"title":37,"path":38,"stem":39,"icon":40},"KV Storage","/guide/storage","1.guide/4.storage","carbon:datastore",{"title":42,"path":43,"stem":44,"icon":45},"SQL Database","/guide/database","1.guide/5.database","ri:database-2-line",{"title":47,"path":48,"stem":49,"icon":50},"Cache","/guide/cache","1.guide/6.cache","ri:speed-line",{"title":52,"path":53,"stem":54,"icon":55},"Fetch","/guide/fetch","1.guide/7.fetch","ri:global-line",{"title":57,"path":58,"stem":59,"icon":60},"Assets","/guide/assets","1.guide/8.assets","ri:image-2-line",{"title":62,"path":63,"stem":64,"icon":65},"Plugins","/guide/plugins","1.guide/9.plugins","ri:plug-line",{"title":67,"path":68,"stem":69,"icon":70},"Configuration","/guide/configuration","1.guide/97.configuration","ri:settings-3-line",{"title":72,"path":73,"stem":74,"icon":75},"TypeScript","/guide/typescript","1.guide/98.typescript","tabler:brand-typescript",{"title":77,"path":78,"stem":79,"icon":80},"Nightly Channel","/guide/nightly","1.guide/99.nightly","ri:moon-fill",{"title":82,"path":83,"stem":84,"children":85,"icon":87},"Overview","/deploy","2.deploy/0.index",[86,88,92,122,127],{"title":82,"path":83,"stem":84,"icon":87},"ri:upload-cloud-2-line",{"title":89,"path":90,"stem":91,"icon":55},"Edge Workers","/deploy/workers","2.deploy/1.workers",{"title":93,"path":94,"stem":95,"children":96,"page":121},"Runtimes","/deploy/runtimes","2.deploy/10.runtimes",[97,102,106,111,116],{"title":98,"path":99,"stem":100,"icon":101},"Node.js","/deploy/runtimes/node","2.deploy/10.runtimes/1.node","akar-icons:node-fill",{"title":103,"path":104,"stem":105,"icon":25},"Dir","/deploy/runtimes/_dir","2.deploy/10.runtimes/_dir",{"title":107,"path":108,"stem":109,"icon":110},"WinterJS","/deploy/runtimes/_winterjs","2.deploy/10.runtimes/_winterjs","game-icons:cold-heart",{"title":112,"path":113,"stem":114,"icon":115},"Bun","/deploy/runtimes/bun","2.deploy/10.runtimes/bun","simple-icons:bun",{"title":117,"path":118,"stem":119,"icon":120},"Deno","/deploy/runtimes/deno","2.deploy/10.runtimes/deno","simple-icons:deno",false,{"title":123,"path":124,"stem":125,"icon":126},"Custom Preset","/deploy/custom-presets","2.deploy/2.custom-presets","ri:file-code-line",{"title":128,"path":129,"stem":130,"children":131,"page":121},"Providers","/deploy/providers","2.deploy/20.providers",[132,136,140,144,148,152,156,160,164,168,172,176,180,184,188,192,196,200,204,208,212,216,220,224],{"title":103,"path":133,"stem":134,"icon":135},"/deploy/providers/_dir","2.deploy/20.providers/_dir","tdesign:cloud",{"title":137,"path":138,"stem":139},"Alwaysdata","/deploy/providers/alwaysdata","2.deploy/20.providers/alwaysdata",{"title":141,"path":142,"stem":143},"AWS Lambda","/deploy/providers/aws","2.deploy/20.providers/aws",{"title":145,"path":146,"stem":147},"AWS Amplify","/deploy/providers/aws-amplify","2.deploy/20.providers/aws-amplify",{"title":149,"path":150,"stem":151},"Azure","/deploy/providers/azure","2.deploy/20.providers/azure",{"title":153,"path":154,"stem":155},"Cleavr","/deploy/providers/cleavr","2.deploy/20.providers/cleavr",{"title":157,"path":158,"stem":159},"Cloudflare","/deploy/providers/cloudflare","2.deploy/20.providers/cloudflare",{"title":161,"path":162,"stem":163},"Deno Deploy","/deploy/providers/deno-deploy","2.deploy/20.providers/deno-deploy",{"title":165,"path":166,"stem":167},"DigitalOcean","/deploy/providers/digitalocean","2.deploy/20.providers/digitalocean",{"title":169,"path":170,"stem":171},"Firebase","/deploy/providers/firebase","2.deploy/20.providers/firebase",{"title":173,"path":174,"stem":175},"Flightcontrol","/deploy/providers/flightcontrol","2.deploy/20.providers/flightcontrol",{"title":177,"path":178,"stem":179},"Genezio","/deploy/providers/genezio","2.deploy/20.providers/genezio",{"title":181,"path":182,"stem":183},"GitHub Pages","/deploy/providers/github-pages","2.deploy/20.providers/github-pages",{"title":185,"path":186,"stem":187},"GitLab Pages","/deploy/providers/gitlab-pages","2.deploy/20.providers/gitlab-pages",{"title":189,"path":190,"stem":191},"Heroku","/deploy/providers/heroku","2.deploy/20.providers/heroku",{"title":193,"path":194,"stem":195},"IIS","/deploy/providers/iis","2.deploy/20.providers/iis",{"title":197,"path":198,"stem":199},"Koyeb","/deploy/providers/koyeb","2.deploy/20.providers/koyeb",{"title":201,"path":202,"stem":203},"Netlify","/deploy/providers/netlify","2.deploy/20.providers/netlify",{"title":205,"path":206,"stem":207},"Platform.sh","/deploy/providers/platform-sh","2.deploy/20.providers/platform-sh",{"title":209,"path":210,"stem":211},"Render.com","/deploy/providers/render","2.deploy/20.providers/render",{"title":213,"path":214,"stem":215},"StormKit","/deploy/providers/stormkit","2.deploy/20.providers/stormkit",{"title":217,"path":218,"stem":219},"Vercel","/deploy/providers/vercel","2.deploy/20.providers/vercel",{"title":221,"path":222,"stem":223},"Zeabur","/deploy/providers/zeabur","2.deploy/20.providers/zeabur",{"title":225,"path":226,"stem":227},"Zerops","/deploy/providers/zerops","2.deploy/20.providers/zerops",{"title":229,"path":230,"stem":231,"children":232,"icon":70},"Config","/config","3.config/0.index",[233],{"title":229,"path":230,"stem":231,"icon":70},{"id":235,"title":197,"body":236,"description":634,"extension":635,"meta":636,"navigation":637,"path":198,"seo":638,"stem":199,"__hash__":639},"content/2.deploy/20.providers/koyeb.md",{"type":237,"value":238,"toc":629},"minimark",[239,251,255,260,368,372,564,568,598,625],[240,241,242,246,247],"p",{},[243,244,245],"strong",{},"Preset:"," ",[248,249,250],"code",{},"koyeb",[252,253],"read-more",{"to":254},"https://www.koyeb.com",[256,257,259],"h2",{"id":258},"using-the-control-panel","Using the control panel",[261,262,264,280,287,298,301,342,358,361],"steps",{"level":263},"4",[265,266,267,268,275,276,279],"h4",{},"In the ",[269,270,274],"a",{"href":271,"rel":272},"https://app.koyeb.com/",[273],"nofollow","Koyeb control panel",", click ",[243,277,278],{},"Create App",".",[265,281,282,283,286],{},"Choose ",[243,284,285],{},"GitHub"," as your deployment method.",[265,288,289,290,293,294,297],{},"Choose the GitHub ",[243,291,292],{},"repository"," and ",[243,295,296],{},"branch"," containing your application code.",[265,299,300],{},"Name your Service.",[265,302,303,304,307,308,311,312,315,316,319,320],{},"If you did not add a ",[248,305,306],{},"start"," command to your ",[248,309,310],{},"package.json"," file, under the ",[243,313,314],{},"Build and deployment settings",", toggle the override switch associated with the run command field.  In the ",[243,317,318],{},"Run command"," field, enter:",[321,322,327],"pre",{"className":323,"code":324,"language":325,"meta":326,"style":326},"language-bash shiki shiki-themes github-light github-dark github-dark","node .output/server/index.mjs`\n","bash","",[248,328,329],{"__ignoreMap":326},[330,331,334,338],"span",{"class":332,"line":333},"line",1,[330,335,337],{"class":336},"shcOC","node",[330,339,341],{"class":340},"sfrk1"," .output/server/index.mjs`\n",[265,343,267,344,347,348,351,352,355,356,279],{},[243,345,346],{},"Advanced"," section, click ",[243,349,350],{},"Add Variable"," and add a ",[248,353,354],{},"NITRO_PRESET"," variable set to ",[248,357,250],{},[265,359,360],{},"Name the App.",[265,362,363,364,367],{},"Click the ",[243,365,366],{},"Deploy"," button.",[256,369,371],{"id":370},"using-the-koyeb-cli","Using the Koyeb CLI",[261,373,374,389,398,417],{"level":263},[265,375,376,377,382,383,388],{},"Follow the instructions targeting your operating system to ",[269,378,381],{"href":379,"rel":380},"https://www.koyeb.com/docs/cli/installation",[273],"install the Koyeb CLI client"," with an installer.  Alternatively, visit the ",[269,384,387],{"href":385,"rel":386},"https://github.com/koyeb/koyeb-cli/releases",[273],"releases page on GitHub"," to directly download required files.",[265,390,391,392,397],{},"Create a Koyeb API access token by visiting the ",[269,393,396],{"href":394,"rel":395},"https://app.koyeb.com/settings/api",[273],"API settings for your organization"," in the Koyeb control panel.",[265,399,400,401,413,416],{},"Log into your account with the Koyeb CLI by typing:",[321,402,404],{"className":323,"code":403,"language":325,"meta":326,"style":326},"koyeb login\n",[248,405,406],{"__ignoreMap":326},[330,407,408,410],{"class":332,"line":333},[330,409,250],{"class":336},[330,411,412],{"class":340}," login\n",[414,415],"br",{},"Paste your API credentials when prompted.",[265,418,419,420,423,424,427,428,431,432],{},"Deploy your Nitro application from a GitHub repository with the following command.  Be sure to substitute your own values for ",[248,421,422],{},"\u003CAPPLICATION_NAME>",", ",[248,425,426],{},"\u003CYOUR_GITHUB_USERNAME>",", and ",[248,429,430],{},"\u003CYOUR_REPOSITORY_NAME>",":",[321,433,435],{"className":323,"code":434,"language":325,"meta":326,"style":326},"koyeb app init \u003CAPPLICATION_NAME> \\\n   --git github.com/\u003CYOUR_GITHUB_USERNAME>/\u003CYOUR_REPOSITORY_NAME> \\\n   --git-branch main \\\n   --git-run-command \"node .output/server/index.mjs\" \\\n   --ports 3000:http \\\n   --routes /:3000 \\\n   --env PORT=3000 \\\n   --env NITRO_PRESET=koyeb\n",[248,436,437,465,498,509,520,531,542,556],{"__ignoreMap":326},[330,438,439,441,444,447,451,454,458,461],{"class":332,"line":333},[330,440,250],{"class":336},[330,442,443],{"class":340}," app",[330,445,446],{"class":340}," init",[330,448,450],{"class":449},"so5gQ"," \u003C",[330,452,453],{"class":340},"APPLICATION_NAM",[330,455,457],{"class":456},"slsVL","E",[330,459,460],{"class":449},">",[330,462,464],{"class":463},"suiK_"," \\\n",[330,466,468,471,474,477,480,482,484,487,489,492,494,496],{"class":332,"line":467},2,[330,469,470],{"class":463},"   --git",[330,472,473],{"class":340}," github.com/",[330,475,476],{"class":449},"\u003C",[330,478,479],{"class":340},"YOUR_GITHUB_USERNAM",[330,481,457],{"class":456},[330,483,460],{"class":449},[330,485,486],{"class":340},"/",[330,488,476],{"class":449},[330,490,491],{"class":340},"YOUR_REPOSITORY_NAM",[330,493,457],{"class":456},[330,495,460],{"class":449},[330,497,464],{"class":463},[330,499,501,504,507],{"class":332,"line":500},3,[330,502,503],{"class":463},"   --git-branch",[330,505,506],{"class":340}," main",[330,508,464],{"class":463},[330,510,512,515,518],{"class":332,"line":511},4,[330,513,514],{"class":463},"   --git-run-command",[330,516,517],{"class":340}," \"node .output/server/index.mjs\"",[330,519,464],{"class":463},[330,521,523,526,529],{"class":332,"line":522},5,[330,524,525],{"class":463},"   --ports",[330,527,528],{"class":340}," 3000:http",[330,530,464],{"class":463},[330,532,534,537,540],{"class":332,"line":533},6,[330,535,536],{"class":463},"   --routes",[330,538,539],{"class":340}," /:3000",[330,541,464],{"class":463},[330,543,545,548,551,554],{"class":332,"line":544},7,[330,546,547],{"class":463},"   --env",[330,549,550],{"class":340}," PORT=",[330,552,553],{"class":463},"3000",[330,555,464],{"class":463},[330,557,559,561],{"class":332,"line":558},8,[330,560,547],{"class":463},[330,562,563],{"class":340}," NITRO_PRESET=koyeb\n",[256,565,567],{"id":566},"using-a-docker-container","Using a docker container",[261,569,570,585],{"level":263},[265,571,572,573,576,577],{},"Create a ",[248,574,575],{},".dockerignore"," file in the root of your project and add the following lines:",[321,578,583],{"className":579,"code":581,"language":582},[580],"language-text","Dockerfile\n.dockerignore\nnode_modules\nnpm-debug.log\n.nitro\n.output\n.git\ndist\nREADME.md\n","text",[248,584,581],{"__ignoreMap":326},[265,586,587,588,591,592],{},"Add a ",[248,589,590],{},"Dockerfile"," to the root of your project:",[321,593,596],{"className":594,"code":595,"language":582},[580],"FROM node:18-alpine AS base\n\nFROM base AS deps\nRUN apk add --no-cache libc6-compat\nWORKDIR /app\nCOPY package.json package-lock.json ./\nRUN npm ci\n\nFROM base AS builder\nWORKDIR /app\nCOPY --from=deps /app/node_modules ./node_modules\nCOPY . .\nRUN npm run build && npm cache clean --force\n\nFROM base AS runner\nWORKDIR /app\nRUN addgroup --system --gid 1001 nodejs\nRUN adduser --system --uid 1001 nitro\nCOPY --from=builder /app .\nUSER nitro\nEXPOSE 3000\nENV PORT 3000\nCMD [\"npm\", \"run\", \"start\"]\n",[248,597,595],{"__ignoreMap":326},[240,599,600,601,606,607,612,613,618,619,624],{},"The Dockerfile above provides the minimum requirements to run the Nitro application. You can easily extend it depending on your needs.\nYou will then need to push your Docker image to a registry. You can use ",[269,602,605],{"href":603,"rel":604},"https://hub.docker.com/",[273],"Docker Hub"," or ",[269,608,611],{"href":609,"rel":610},"https://docs.github.com/en/packages/guides/about-github-container-registry",[273],"GitHub Container Registry"," for example.\nIn the Koyeb control panel, use the image and the tag field to specify the image you want to deploy.\nYou can also use the ",[269,614,617],{"href":615,"rel":616},"https://www.koyeb.com/docs/build-and-deploy/cli/installation",[273],"Koyeb CLI","\nRefer to the Koyeb ",[269,620,623],{"href":621,"rel":622},"https://www.koyeb.com/docs/build-and-deploy/prebuilt-docker-images",[273],"Docker documentation"," for more information.",[626,627,628],"style",{},"html pre.shiki code .shcOC, html code.shiki .shcOC{--shiki-light:#6F42C1;--shiki-default:#B392F0;--shiki-dark:#B392F0}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 .so5gQ, html code.shiki .so5gQ{--shiki-light:#D73A49;--shiki-default:#F97583;--shiki-dark:#F97583}html pre.shiki code .slsVL, html code.shiki .slsVL{--shiki-light:#24292E;--shiki-default:#E1E4E8;--shiki-dark:#E1E4E8}html pre.shiki code .suiK_, html code.shiki .suiK_{--shiki-light:#005CC5;--shiki-default:#79B8FF;--shiki-dark:#79B8FF}",{"title":326,"searchDepth":467,"depth":467,"links":630},[631,632,633],{"id":258,"depth":467,"text":259},{"id":370,"depth":467,"text":371},{"id":566,"depth":467,"text":567},"Deploy Nitro apps to Koyeb.","md",{},{},{"title":197,"description":634},"OHJRqUVeoa6zPLM11SspIDyzh_OyUlc28iKLr6OatMk",[641,643],{"title":193,"path":194,"stem":195,"description":642,"children":-1},"Deploy Nitro apps to IIS.",{"title":201,"path":202,"stem":203,"description":644,"children":-1},"Deploy Nitro apps to Netlify functions or edge.",1778145701498]