[{"data":1,"prerenderedAt":806},["ShallowReactive",2],{"navigation":3,"-deploy-providers-koyeb":398,"-deploy-providers-koyeb-surround":801},[4,93,222,228,383,395],{"title":5,"path":6,"stem":7,"children":8,"icon":92},"","/docs","1.docs/1.index",[9,12,17,22,27,32,37,42,47,52,57,62,67,72,77,82,87],{"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},"OpenAPI","/docs/openapi","1.docs/50.openapi","ri:contract-line",{"title":53,"path":54,"stem":55,"icon":56},"Plugins","/docs/plugins","1.docs/50.plugins","ri:plug-line",{"title":58,"path":59,"stem":60,"icon":61},"Tasks","/docs/tasks","1.docs/50.tasks","codicon:run-all",{"title":63,"path":64,"stem":65,"icon":66},"WebSocket","/docs/websocket","1.docs/50.websocket","ri:broadcast-fill",{"title":68,"path":69,"stem":70,"icon":71},"Server Entry","/docs/server-entry","1.docs/6.server-entry","ri:server-line",{"title":73,"path":74,"stem":75,"icon":76},"Cache","/docs/cache","1.docs/7.cache","ri:speed-line",{"title":78,"path":79,"stem":80,"icon":81},"KV Storage","/docs/storage","1.docs/8.storage","carbon:datastore",{"title":83,"path":84,"stem":85,"icon":86},"Migration Guide","/docs/migration","1.docs/99.migration","ri:arrow-right-up-line",{"title":88,"path":89,"stem":90,"icon":91},"Nightly Channel","/docs/nightly","1.docs/99.nightly","ri:moon-fill","i-lucide-book-open",{"title":94,"path":95,"stem":96,"children":97,"icon":99},"Deploy","/deploy","2.deploy/0.index",[98,100,121],{"title":94,"path":95,"stem":96,"icon":99},"ri:upload-cloud-2-line",{"title":101,"path":102,"stem":103,"children":104,"page":120},"Runtimes","/deploy/runtimes","2.deploy/10.runtimes",[105,110,115],{"title":106,"path":107,"stem":108,"icon":109},"Node.js","/deploy/runtimes/node","2.deploy/10.runtimes/1.node","akar-icons:node-fill",{"title":111,"path":112,"stem":113,"icon":114},"Bun","/deploy/runtimes/bun","2.deploy/10.runtimes/bun","simple-icons:bun",{"title":116,"path":117,"stem":118,"icon":119},"Deno","/deploy/runtimes/deno","2.deploy/10.runtimes/deno","simple-icons:deno",false,{"title":122,"path":123,"stem":124,"children":125,"page":120},"Providers","/deploy/providers","2.deploy/20.providers",[126,130,134,138,142,146,150,154,158,162,166,170,174,178,182,186,190,194,198,202,206,210,214,218],{"title":127,"path":128,"stem":129},"Alwaysdata","/deploy/providers/alwaysdata","2.deploy/20.providers/alwaysdata",{"title":131,"path":132,"stem":133},"AWS Lambda","/deploy/providers/aws","2.deploy/20.providers/aws",{"title":135,"path":136,"stem":137},"AWS Amplify","/deploy/providers/aws-amplify","2.deploy/20.providers/aws-amplify",{"title":139,"path":140,"stem":141},"Azure","/deploy/providers/azure","2.deploy/20.providers/azure",{"title":143,"path":144,"stem":145},"Cleavr","/deploy/providers/cleavr","2.deploy/20.providers/cleavr",{"title":147,"path":148,"stem":149},"Cloudflare","/deploy/providers/cloudflare","2.deploy/20.providers/cloudflare",{"title":151,"path":152,"stem":153},"Deno Deploy","/deploy/providers/deno-deploy","2.deploy/20.providers/deno-deploy",{"title":155,"path":156,"stem":157},"DigitalOcean","/deploy/providers/digitalocean","2.deploy/20.providers/digitalocean",{"title":159,"path":160,"stem":161},"Firebase","/deploy/providers/firebase","2.deploy/20.providers/firebase",{"title":163,"path":164,"stem":165},"Flightcontrol","/deploy/providers/flightcontrol","2.deploy/20.providers/flightcontrol",{"title":167,"path":168,"stem":169},"Genezio","/deploy/providers/genezio","2.deploy/20.providers/genezio",{"title":171,"path":172,"stem":173},"GitHub Pages","/deploy/providers/github-pages","2.deploy/20.providers/github-pages",{"title":175,"path":176,"stem":177},"GitLab Pages","/deploy/providers/gitlab-pages","2.deploy/20.providers/gitlab-pages",{"title":179,"path":180,"stem":181},"Heroku","/deploy/providers/heroku","2.deploy/20.providers/heroku",{"title":183,"path":184,"stem":185},"IIS","/deploy/providers/iis","2.deploy/20.providers/iis",{"title":187,"path":188,"stem":189},"Koyeb","/deploy/providers/koyeb","2.deploy/20.providers/koyeb",{"title":191,"path":192,"stem":193},"Netlify","/deploy/providers/netlify","2.deploy/20.providers/netlify",{"title":195,"path":196,"stem":197},"Platform.sh","/deploy/providers/platform-sh","2.deploy/20.providers/platform-sh",{"title":199,"path":200,"stem":201},"Render.com","/deploy/providers/render","2.deploy/20.providers/render",{"title":203,"path":204,"stem":205},"StormKit","/deploy/providers/stormkit","2.deploy/20.providers/stormkit",{"title":207,"path":208,"stem":209},"Vercel","/deploy/providers/vercel","2.deploy/20.providers/vercel",{"title":211,"path":212,"stem":213},"Zeabur","/deploy/providers/zeabur","2.deploy/20.providers/zeabur",{"title":215,"path":216,"stem":217},"Zephyr Cloud","/deploy/providers/zephyr","2.deploy/20.providers/zephyr",{"title":219,"path":220,"stem":221},"Zerops","/deploy/providers/zerops","2.deploy/20.providers/zerops",{"title":223,"path":224,"stem":225,"children":226,"icon":36},"Config","/config","3.config/0.index",[227],{"title":223,"path":224,"stem":225,"icon":36},{"title":229,"path":230,"stem":231,"children":232,"icon":234},"Examples","/examples","4.examples/0.index",[233,235,240,245,250,255,259,264,269,274,279,284,289,293,298,302,306,311,316,321,326,331,336,341,346,351,355,360,365,369,374,379],{"title":229,"path":230,"stem":231,"icon":234},"i-lucide-folder-code",{"title":236,"path":237,"stem":238,"icon":239},"API Routes","/examples/api-routes","4.examples/api-routes","i-lucide-route",{"title":241,"path":242,"stem":243,"icon":244},"Auto Imports","/examples/auto-imports","4.examples/auto-imports","i-lucide-import",{"title":246,"path":247,"stem":248,"icon":249},"Cached Handler","/examples/cached-handler","4.examples/cached-handler","i-lucide-clock",{"title":251,"path":252,"stem":253,"icon":254},"Custom Error Handler","/examples/custom-error-handler","4.examples/custom-error-handler","i-lucide-alert-circle",{"title":38,"path":256,"stem":257,"icon":258},"/examples/database","4.examples/database","i-lucide-database",{"title":260,"path":261,"stem":262,"icon":263},"Elysia","/examples/elysia","4.examples/elysia","i-skill-icons-elysia-dark",{"title":265,"path":266,"stem":267,"icon":268},"Express","/examples/express","4.examples/express","i-simple-icons-express",{"title":270,"path":271,"stem":272,"icon":273},"Fastify","/examples/fastify","4.examples/fastify","i-simple-icons-fastify",{"title":275,"path":276,"stem":277,"icon":278},"Hello World","/examples/hello-world","4.examples/hello-world","i-lucide-sparkles",{"title":280,"path":281,"stem":282,"icon":283},"Hono","/examples/hono","4.examples/hono","i-logos-hono",{"title":285,"path":286,"stem":287,"icon":288},"Import Alias","/examples/import-alias","4.examples/import-alias","i-lucide-at-sign",{"title":290,"path":291,"stem":292,"icon":46},"Middleware","/examples/middleware","4.examples/middleware",{"title":294,"path":295,"stem":296,"icon":297},"Mono JSX","/examples/mono-jsx","4.examples/mono-jsx","i-lucide-brackets",{"title":299,"path":300,"stem":301,"icon":297},"Nano JSX","/examples/nano-jsx","4.examples/nano-jsx",{"title":53,"path":303,"stem":304,"icon":305},"/examples/plugins","4.examples/plugins","i-lucide-plug",{"title":307,"path":308,"stem":309,"icon":310},"Custom Renderer","/examples/renderer","4.examples/renderer","i-lucide-code",{"title":312,"path":313,"stem":314,"icon":315},"Runtime Config","/examples/runtime-config","4.examples/runtime-config","i-lucide-settings",{"title":317,"path":318,"stem":319,"icon":320},"Server Fetch","/examples/server-fetch","4.examples/server-fetch","i-lucide-arrow-right-left",{"title":322,"path":323,"stem":324,"icon":325},"Shiki","/examples/shiki","4.examples/shiki","i-lucide-highlighter",{"title":327,"path":328,"stem":329,"icon":330},"Virtual Routes","/examples/virtual-routes","4.examples/virtual-routes","i-lucide-box",{"title":332,"path":333,"stem":334,"icon":335},"Vite Nitro Plugin","/examples/vite-nitro-plugin","4.examples/vite-nitro-plugin","i-logos-vitejs",{"title":337,"path":338,"stem":339,"icon":340},"Vite RSC","/examples/vite-rsc","4.examples/vite-rsc","i-logos-react",{"title":342,"path":343,"stem":344,"icon":345},"Vite SSR HTML","/examples/vite-ssr-html","4.examples/vite-ssr-html","i-logos-html-5",{"title":347,"path":348,"stem":349,"icon":350},"SSR with Preact","/examples/vite-ssr-preact","4.examples/vite-ssr-preact","i-logos-preact",{"title":352,"path":353,"stem":354,"icon":340},"SSR with React","/examples/vite-ssr-react","4.examples/vite-ssr-react",{"title":356,"path":357,"stem":358,"icon":359},"SSR with SolidJS","/examples/vite-ssr-solid","4.examples/vite-ssr-solid","i-logos-solidjs-icon",{"title":361,"path":362,"stem":363,"icon":364},"SSR with TanStack Router","/examples/vite-ssr-tsr-react","4.examples/vite-ssr-tsr-react","i-simple-icons-tanstack",{"title":366,"path":367,"stem":368,"icon":364},"SSR with TanStack Start","/examples/vite-ssr-tss-react","4.examples/vite-ssr-tss-react",{"title":370,"path":371,"stem":372,"icon":373},"SSR with Vue Router","/examples/vite-ssr-vue-router","4.examples/vite-ssr-vue-router","i-logos-vue",{"title":375,"path":376,"stem":377,"icon":378},"Vite + tRPC","/examples/vite-trpc","4.examples/vite-trpc","i-simple-icons-trpc",{"title":63,"path":380,"stem":381,"icon":382},"/examples/websocket","4.examples/websocket","i-lucide-radio",{"title":384,"path":385,"stem":386,"children":387},"Blog","/blog","9.blog",[388,391],{"title":384,"path":385,"stem":389,"icon":390},"9.blog/index","i-lucide-file-text",{"title":392,"path":393,"stem":394,"icon":390},"Nitro v3 Beta is here!","/blog/v3-beta","9.blog/1.v3-beta",{"title":5,"path":396,"stem":397},"/","index",{"id":399,"title":187,"body":400,"description":795,"extension":796,"meta":797,"navigation":798,"path":188,"seo":799,"stem":189,"__hash__":800},"content/2.deploy/20.providers/koyeb.md",{"type":401,"value":402,"toc":790},"minimark",[403,415,419,424,530,534,725,729,759,786],[404,405,406,410,411],"p",{},[407,408,409],"strong",{},"Preset:"," ",[412,413,414],"code",{},"koyeb",[416,417],"read-more",{"to":418},"https://www.koyeb.com",[420,421,423],"h2",{"id":422},"using-the-control-panel","Using the control panel",[425,426,428,444,451,462,465,505,521,524],"steps",{"level":427},"4",[429,430,431,432,439,440,443],"h4",{},"In the ",[433,434,438],"a",{"href":435,"rel":436},"https://app.koyeb.com/",[437],"nofollow","Koyeb control panel",", click ",[407,441,442],{},"Create App",".",[429,445,446,447,450],{},"Choose ",[407,448,449],{},"GitHub"," as your deployment method.",[429,452,453,454,457,458,461],{},"Choose the GitHub ",[407,455,456],{},"repository"," and ",[407,459,460],{},"branch"," containing your application code.",[429,463,464],{},"Name your Service.",[429,466,467,468,471,472,475,476,479,480,483,484],{},"If you did not add a ",[412,469,470],{},"start"," command to your ",[412,473,474],{},"package.json"," file, under the ",[407,477,478],{},"Build and deployment settings",", toggle the override switch associated with the run command field.  In the ",[407,481,482],{},"Run command"," field, enter:",[485,486,490],"pre",{"className":487,"code":488,"language":489,"meta":5,"style":5},"language-bash shiki shiki-themes github-light github-dark github-dark","node .output/server/index.mjs`\n","bash",[412,491,492],{"__ignoreMap":5},[493,494,497,501],"span",{"class":495,"line":496},"line",1,[493,498,500],{"class":499},"shcOC","node",[493,502,504],{"class":503},"sfrk1"," .output/server/index.mjs`\n",[429,506,431,507,510,511,514,515,518,519,443],{},[407,508,509],{},"Advanced"," section, click ",[407,512,513],{},"Add Variable"," and add a ",[412,516,517],{},"NITRO_PRESET"," variable set to ",[412,520,414],{},[429,522,523],{},"Name the App.",[429,525,526,527,529],{},"Click the ",[407,528,94],{}," button.",[420,531,533],{"id":532},"using-the-koyeb-cli","Using the Koyeb CLI",[425,535,536,551,560,579],{"level":427},[429,537,538,539,544,545,550],{},"Follow the instructions targeting your operating system to ",[433,540,543],{"href":541,"rel":542},"https://www.koyeb.com/docs/cli/installation",[437],"install the Koyeb CLI client"," with an installer.  Alternatively, visit the ",[433,546,549],{"href":547,"rel":548},"https://github.com/koyeb/koyeb-cli/releases",[437],"releases page on GitHub"," to directly download required files.",[429,552,553,554,559],{},"Create a Koyeb API access token by visiting the ",[433,555,558],{"href":556,"rel":557},"https://app.koyeb.com/settings/api",[437],"API settings for your organization"," in the Koyeb control panel.",[429,561,562,563,575,578],{},"Log into your account with the Koyeb CLI by typing:",[485,564,566],{"className":487,"code":565,"language":489,"meta":5,"style":5},"koyeb login\n",[412,567,568],{"__ignoreMap":5},[493,569,570,572],{"class":495,"line":496},[493,571,414],{"class":499},[493,573,574],{"class":503}," login\n",[576,577],"br",{},"Paste your API credentials when prompted.",[429,580,581,582,585,586,589,590,593,594],{},"Deploy your Nitro application from a GitHub repository with the following command.  Be sure to substitute your own values for ",[412,583,584],{},"\u003CAPPLICATION_NAME>",", ",[412,587,588],{},"\u003CYOUR_GITHUB_USERNAME>",", and ",[412,591,592],{},"\u003CYOUR_REPOSITORY_NAME>",":",[485,595,597],{"className":487,"code":596,"language":489,"meta":5,"style":5},"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",[412,598,599,627,659,670,681,692,703,717],{"__ignoreMap":5},[493,600,601,603,606,609,613,616,620,623],{"class":495,"line":496},[493,602,414],{"class":499},[493,604,605],{"class":503}," app",[493,607,608],{"class":503}," init",[493,610,612],{"class":611},"so5gQ"," \u003C",[493,614,615],{"class":503},"APPLICATION_NAM",[493,617,619],{"class":618},"slsVL","E",[493,621,622],{"class":611},">",[493,624,626],{"class":625},"suiK_"," \\\n",[493,628,630,633,636,639,642,644,646,648,650,653,655,657],{"class":495,"line":629},2,[493,631,632],{"class":625},"   --git",[493,634,635],{"class":503}," github.com/",[493,637,638],{"class":611},"\u003C",[493,640,641],{"class":503},"YOUR_GITHUB_USERNAM",[493,643,619],{"class":618},[493,645,622],{"class":611},[493,647,396],{"class":503},[493,649,638],{"class":611},[493,651,652],{"class":503},"YOUR_REPOSITORY_NAM",[493,654,619],{"class":618},[493,656,622],{"class":611},[493,658,626],{"class":625},[493,660,662,665,668],{"class":495,"line":661},3,[493,663,664],{"class":625},"   --git-branch",[493,666,667],{"class":503}," main",[493,669,626],{"class":625},[493,671,673,676,679],{"class":495,"line":672},4,[493,674,675],{"class":625},"   --git-run-command",[493,677,678],{"class":503}," \"node .output/server/index.mjs\"",[493,680,626],{"class":625},[493,682,684,687,690],{"class":495,"line":683},5,[493,685,686],{"class":625},"   --ports",[493,688,689],{"class":503}," 3000:http",[493,691,626],{"class":625},[493,693,695,698,701],{"class":495,"line":694},6,[493,696,697],{"class":625},"   --routes",[493,699,700],{"class":503}," /:3000",[493,702,626],{"class":625},[493,704,706,709,712,715],{"class":495,"line":705},7,[493,707,708],{"class":625},"   --env",[493,710,711],{"class":503}," PORT=",[493,713,714],{"class":625},"3000",[493,716,626],{"class":625},[493,718,720,722],{"class":495,"line":719},8,[493,721,708],{"class":625},[493,723,724],{"class":503}," NITRO_PRESET=koyeb\n",[420,726,728],{"id":727},"using-a-docker-container","Using a docker container",[425,730,731,746],{"level":427},[429,732,733,734,737,738],{},"Create a ",[412,735,736],{},".dockerignore"," file in the root of your project and add the following lines:",[485,739,744],{"className":740,"code":742,"language":743},[741],"language-text","Dockerfile\n.dockerignore\nnode_modules\nnpm-debug.log\n.nitro\n.output\n.git\ndist\nREADME.md\n","text",[412,745,742],{"__ignoreMap":5},[429,747,748,749,752,753],{},"Add a ",[412,750,751],{},"Dockerfile"," to the root of your project:",[485,754,757],{"className":755,"code":756,"language":743},[741],"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",[412,758,756],{"__ignoreMap":5},[404,760,761,762,767,768,773,774,779,780,785],{},"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 ",[433,763,766],{"href":764,"rel":765},"https://hub.docker.com/",[437],"Docker Hub"," or ",[433,769,772],{"href":770,"rel":771},"https://docs.github.com/en/packages/guides/about-github-container-registry",[437],"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 ",[433,775,778],{"href":776,"rel":777},"https://www.koyeb.com/docs/build-and-deploy/cli/installation",[437],"Koyeb CLI","\nRefer to the Koyeb ",[433,781,784],{"href":782,"rel":783},"https://www.koyeb.com/docs/build-and-deploy/prebuilt-docker-images",[437],"Docker documentation"," for more information.",[787,788,789],"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":5,"searchDepth":629,"depth":629,"links":791},[792,793,794],{"id":422,"depth":629,"text":423},{"id":532,"depth":629,"text":533},{"id":727,"depth":629,"text":728},"Deploy Nitro apps to Koyeb.","md",{},{},{"title":187,"description":795},"OHJRqUVeoa6zPLM11SspIDyzh_OyUlc28iKLr6OatMk",[802,804],{"title":183,"path":184,"stem":185,"description":803,"children":-1},"Deploy Nitro apps to IIS.",{"title":191,"path":192,"stem":193,"description":805,"children":-1},"Deploy Nitro apps to Netlify functions or edge.",1776117110654]