[{"data":1,"prerenderedAt":588},["ShallowReactive",2],{"navigation":3,"-deploy-providers-genezio":234,"-deploy-providers-genezio-surround":583},[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":177,"body":236,"description":577,"extension":578,"meta":579,"navigation":580,"path":178,"seo":581,"stem":179,"__hash__":582},"content/2.deploy/20.providers/genezio.md",{"type":237,"value":238,"toc":572},"minimark",[239,251,255,261,266,273,482,495,499,502,530,540,544,555,559,568],[240,241,242,246,247],"p",{},[243,244,245],"strong",{},"Preset:"," ",[248,249,250],"code",{},"genezio",[252,253],"read-more",{"to":254,"title":177},"https://genezio.com",[256,257,258],"important",{},[240,259,260],{},"\n🚧 This preset is currently experimental.",[262,263,265],"h2",{"id":264},"_1-project-setup","1. Project Setup",[240,267,268,269,272],{},"Create ",[248,270,271],{},"genezio.yaml"," file:",[274,275,280],"pre",{"className":276,"code":277,"language":278,"meta":279,"style":279},"language-yaml shiki shiki-themes github-light github-dark github-dark","# The name of the project.\nname: nitro-app\n# The version of the Genezio YAML configuration to parse.\nyamlVersion: 2\nbackend:\n  # The root directory of the backend.\n  path: .output/\n  # Information about the backend's programming language.\n  language:\n      # The name of the programming language.\n      name: js\n      # The package manager used by the backend.\n      packageManager: npm\n  # Information about the backend's functions.\n  functions:\n      # The name (label) of the function.\n      - name: nitroServer\n      # The path to the function's code.\n        path: server/\n        # The name of the function handler\n        handler: handler\n        # The entry point for the function.\n        entry: index.mjs\n","yaml","",[248,281,282,291,306,312,324,333,339,350,356,364,370,381,387,398,404,412,418,431,437,448,454,465,471],{"__ignoreMap":279},[283,284,287],"span",{"class":285,"line":286},"line",1,[283,288,290],{"class":289},"sCsY4","# The name of the project.\n",[283,292,294,298,302],{"class":285,"line":293},2,[283,295,297],{"class":296},"sByVh","name",[283,299,301],{"class":300},"slsVL",": ",[283,303,305],{"class":304},"sfrk1","nitro-app\n",[283,307,309],{"class":285,"line":308},3,[283,310,311],{"class":289},"# The version of the Genezio YAML configuration to parse.\n",[283,313,315,318,320],{"class":285,"line":314},4,[283,316,317],{"class":296},"yamlVersion",[283,319,301],{"class":300},[283,321,323],{"class":322},"suiK_","2\n",[283,325,327,330],{"class":285,"line":326},5,[283,328,329],{"class":296},"backend",[283,331,332],{"class":300},":\n",[283,334,336],{"class":285,"line":335},6,[283,337,338],{"class":289},"  # The root directory of the backend.\n",[283,340,342,345,347],{"class":285,"line":341},7,[283,343,344],{"class":296},"  path",[283,346,301],{"class":300},[283,348,349],{"class":304},".output/\n",[283,351,353],{"class":285,"line":352},8,[283,354,355],{"class":289},"  # Information about the backend's programming language.\n",[283,357,359,362],{"class":285,"line":358},9,[283,360,361],{"class":296},"  language",[283,363,332],{"class":300},[283,365,367],{"class":285,"line":366},10,[283,368,369],{"class":289},"      # The name of the programming language.\n",[283,371,373,376,378],{"class":285,"line":372},11,[283,374,375],{"class":296},"      name",[283,377,301],{"class":300},[283,379,380],{"class":304},"js\n",[283,382,384],{"class":285,"line":383},12,[283,385,386],{"class":289},"      # The package manager used by the backend.\n",[283,388,390,393,395],{"class":285,"line":389},13,[283,391,392],{"class":296},"      packageManager",[283,394,301],{"class":300},[283,396,397],{"class":304},"npm\n",[283,399,401],{"class":285,"line":400},14,[283,402,403],{"class":289},"  # Information about the backend's functions.\n",[283,405,407,410],{"class":285,"line":406},15,[283,408,409],{"class":296},"  functions",[283,411,332],{"class":300},[283,413,415],{"class":285,"line":414},16,[283,416,417],{"class":289},"      # The name (label) of the function.\n",[283,419,421,424,426,428],{"class":285,"line":420},17,[283,422,423],{"class":300},"      - ",[283,425,297],{"class":296},[283,427,301],{"class":300},[283,429,430],{"class":304},"nitroServer\n",[283,432,434],{"class":285,"line":433},18,[283,435,436],{"class":289},"      # The path to the function's code.\n",[283,438,440,443,445],{"class":285,"line":439},19,[283,441,442],{"class":296},"        path",[283,444,301],{"class":300},[283,446,447],{"class":304},"server/\n",[283,449,451],{"class":285,"line":450},20,[283,452,453],{"class":289},"        # The name of the function handler\n",[283,455,457,460,462],{"class":285,"line":456},21,[283,458,459],{"class":296},"        handler",[283,461,301],{"class":300},[283,463,464],{"class":304},"handler\n",[283,466,468],{"class":285,"line":467},22,[283,469,470],{"class":289},"        # The entry point for the function.\n",[283,472,474,477,479],{"class":285,"line":473},23,[283,475,476],{"class":296},"        entry",[283,478,301],{"class":300},[283,480,481],{"class":304},"index.mjs\n",[252,483,485],{"to":484},"https://genezio.com/docs/project-structure/genezio-configuration-file/",[240,486,487,488,494],{},"To further customize the file to your needs, you can consult the\n",[489,490,493],"a",{"href":484,"rel":491},[492],"nofollow","official documentation",".",[262,496,498],{"id":497},"_2-deploy-your-project","2. Deploy your project",[240,500,501],{},"Build with the genezio nitro preset:",[274,503,507],{"className":504,"code":505,"language":506,"meta":279,"style":279},"language-bash shiki shiki-themes github-light github-dark github-dark","NITRO_PRESET=genezio npm run build\n","bash",[248,508,509],{"__ignoreMap":279},[283,510,511,514,518,520,524,527],{"class":285,"line":286},[283,512,513],{"class":300},"NITRO_PRESET",[283,515,517],{"class":516},"so5gQ","=",[283,519,250],{"class":304},[283,521,523],{"class":522},"shcOC"," npm",[283,525,526],{"class":304}," run",[283,528,529],{"class":304}," build\n",[240,531,532,533,539],{},"Deploy with ",[489,534,537],{"href":535,"rel":536},"https://npmjs.com/package/genezio",[492],[248,538,250],{}," cli:",[541,542],"pm-x",{"command":543},"genezio deploy",[252,545,548],{"to":546,"title":547},"https://genezio.com/docs/project-structure/backend-environment-variables","Backend Environment Variables",[240,549,550,551,494],{},"To set environment viarables, please check out ",[489,552,554],{"href":546,"rel":553},[492],"Genezio - Environment Variables",[262,556,558],{"id":557},"_3-monitor-your-project","3. Monitor your project",[240,560,561,562,567],{},"You can monitor and manage your application through the ",[489,563,566],{"href":564,"rel":565},"https://app.genez.io/dashboard",[492],"Genezio App Dashboard",". The dashboard URL, also provided after deployment, allows you to access comprehensive views of your project's status and logs.",[569,570,571],"style",{},"html pre.shiki code .sCsY4, html code.shiki .sCsY4{--shiki-light:#6A737D;--shiki-default:#6A737D;--shiki-dark:#6A737D}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 pre.shiki code .suiK_, html code.shiki .suiK_{--shiki-light:#005CC5;--shiki-default:#79B8FF;--shiki-dark:#79B8FF}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 .shcOC, html code.shiki .shcOC{--shiki-light:#6F42C1;--shiki-default:#B392F0;--shiki-dark:#B392F0}",{"title":279,"searchDepth":293,"depth":293,"links":573},[574,575,576],{"id":264,"depth":293,"text":265},{"id":497,"depth":293,"text":498},{"id":557,"depth":293,"text":558},"Deploy Nitro apps to Genezio.","md",{},{},{"title":177,"description":577},"SO9CycMAEmAcBXfJ3zKWB4iGM70yg2Z5WAY9S6_n83I",[584,586],{"title":173,"path":174,"stem":175,"description":585,"children":-1},"Deploy Nitro apps to AWS via Flightcontrol.",{"title":181,"path":182,"stem":183,"description":587,"children":-1},"Deploy Nitro apps to GitHub Pages.",1778145700975]