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