[{"data":1,"prerenderedAt":806},["ShallowReactive",2],{"navigation":3,"-deploy-providers-azure":398,"-deploy-providers-azure-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":139,"body":400,"description":795,"extension":796,"meta":797,"navigation":798,"path":140,"seo":799,"stem":141,"__hash__":800},"content/2.deploy/20.providers/azure.md",{"type":401,"value":402,"toc":787},"minimark",[403,408,420,425,437,454,459,468,471,527,530,543,548,551,650,654,661,664,668,671,674,718,721,772,775,783],[404,405,407],"h2",{"id":406},"azure-static-web-apps","Azure static web apps",[409,410,411,415,416],"p",{},[412,413,414],"strong",{},"Preset:"," ",[417,418,419],"code",{},"azure-swa",[421,422],"read-more",{"title":423,"to":424},"Azure Static Web Apps","https://azure.microsoft.com/en-us/products/app-service/static",[426,427,428],"note",{},[409,429,430,431,436],{},"Integration with this provider is possible with ",[432,433,435],"a",{"href":434},"/deploy/#zero-config-providers","zero configuration",".",[409,438,439,443,444,449,450,453],{},[432,440,423],{"href":424,"rel":441},[442],"nofollow"," are designed to be deployed continuously in a ",[432,445,448],{"href":446,"rel":447},"https://docs.microsoft.com/en-us/azure/static-web-apps/github-actions-workflow",[442],"GitHub Actions workflow",". By default, Nitro will detect this deployment environment and enable the ",[417,451,452],{},"azure"," preset.",[455,456,458],"h3",{"id":457},"local-preview","Local preview",[409,460,461,462,467],{},"Install ",[432,463,466],{"href":464,"rel":465},"https://docs.microsoft.com/en-us/azure/azure-functions/functions-run-local",[442],"Azure Functions Core Tools"," if you want to test locally.",[409,469,470],{},"You can invoke a development environment to preview before deploying.",[472,473,477],"pre",{"className":474,"code":475,"language":476,"meta":5,"style":5},"language-bash shiki shiki-themes github-light github-dark github-dark","NITRO_PRESET=azure npx nypm@latest build\nnpx @azure/static-web-apps-cli start .output/public --api-location .output/server\n","bash",[417,478,479,505],{"__ignoreMap":5},[480,481,484,488,492,495,499,502],"span",{"class":482,"line":483},"line",1,[480,485,487],{"class":486},"slsVL","NITRO_PRESET",[480,489,491],{"class":490},"so5gQ","=",[480,493,452],{"class":494},"sfrk1",[480,496,498],{"class":497},"shcOC"," npx",[480,500,501],{"class":494}," nypm@latest",[480,503,504],{"class":494}," build\n",[480,506,508,511,514,517,520,524],{"class":482,"line":507},2,[480,509,510],{"class":497},"npx",[480,512,513],{"class":494}," @azure/static-web-apps-cli",[480,515,516],{"class":494}," start",[480,518,519],{"class":494}," .output/public",[480,521,523],{"class":522},"suiK_"," --api-location",[480,525,526],{"class":494}," .output/server\n",[455,528,33],{"id":529},"configuration",[409,531,532,533,538,539,542],{},"Azure Static Web Apps are ",[432,534,537],{"href":535,"rel":536},"https://learn.microsoft.com/en-us/azure/static-web-apps/configuration",[442],"configured"," using the ",[417,540,541],{},"staticwebapp.config.json"," file.",[409,544,545,546,453],{},"Nitro automatically generates this configuration file whenever the application is built with the ",[417,547,452],{},[409,549,550],{},"Nitro will automatically add the following properties based on the following criteria:",[552,553,554,570],"table",{},[555,556,557],"thead",{},[558,559,560,564,567],"tr",{},[561,562,563],"th",{},"Property",[561,565,566],{},"Criteria",[561,568,569],{},"Default",[571,572,573,600,621],"tbody",{},[558,574,575,585,596],{},[576,577,578],"td",{},[412,579,580],{},[432,581,584],{"href":582,"rel":583},"https://learn.microsoft.com/en-us/azure/static-web-apps/configuration#platform",[442],"platform.apiRuntime",[576,586,587,588,591,592,595],{},"Will automatically set to ",[417,589,590],{},"node:16"," or ",[417,593,594],{},"node:14"," depending on your package configuration.",[576,597,598],{},[417,599,590],{},[558,601,602,611,617],{},[576,603,604],{},[412,605,606],{},[432,607,610],{"href":608,"rel":609},"https://learn.microsoft.com/en-us/azure/static-web-apps/configuration#fallback-routes",[442],"navigationFallback.rewrite",[576,612,613,614],{},"Is always ",[417,615,616],{},"/api/server",[576,618,619],{},[417,620,616],{},[558,622,623,632,645],{},[576,624,625],{},[412,626,627],{},[432,628,631],{"href":629,"rel":630},"https://learn.microsoft.com/en-us/azure/static-web-apps/configuration#routes",[442],"routes",[576,633,634,635,638,639,642,643,436],{},"All prerendered routes are added. Additionally, if you do not have an ",[417,636,637],{},"index.html"," file an empty one is created for you for compatibility purposes and also requests to ",[417,640,641],{},"/index.html"," are redirected to the root directory which is handled by ",[417,644,616],{},[576,646,647],{},[417,648,649],{},"[]",[455,651,653],{"id":652},"custom-configuration","Custom configuration",[409,655,656,657,660],{},"You can alter the Nitro generated configuration using ",[417,658,659],{},"azure.config"," option.",[409,662,663],{},"Custom routes will be added and matched first. In the case of a conflict (determined if an object has the same route property), custom routes will override generated ones.",[455,665,667],{"id":666},"deploy-from-cicd-via-github-actions","Deploy from CI/CD via GitHub actions",[409,669,670],{},"When you link your GitHub repository to Azure Static Web Apps, a workflow file is added to the repository.",[409,672,673],{},"When you are asked to select your framework, select custom and provide the following information:",[552,675,676,686],{},[555,677,678],{},[558,679,680,683],{},[561,681,682],{},"Input",[561,684,685],{},"Value",[571,687,688,698,708],{},[558,689,690,695],{},[576,691,692],{},[412,693,694],{},"app_location",[576,696,697],{},"'/'",[558,699,700,705],{},[576,701,702],{},[412,703,704],{},"api_location",[576,706,707],{},"'.output/server'",[558,709,710,715],{},[576,711,712],{},[412,713,714],{},"output_location",[576,716,717],{},"'.output/public'",[409,719,720],{},"If you miss this step, you can always find the build configuration section in your workflow and update the build configuration:",[472,722,727],{"className":723,"code":724,"filename":725,"language":726,"meta":5,"style":5},"language-yaml shiki shiki-themes github-light github-dark github-dark","###### Repository/Build Configurations ######\napp_location: '/'\napi_location: '.output/server'\noutput_location: '.output/public'\n###### End of Repository/Build Configurations ######\n",".github/workflows/azure-static-web-apps-\u003CRANDOM_NAME>.yml","yaml",[417,728,729,735,746,756,766],{"__ignoreMap":5},[480,730,731],{"class":482,"line":483},[480,732,734],{"class":733},"sCsY4","###### Repository/Build Configurations ######\n",[480,736,737,740,743],{"class":482,"line":507},[480,738,694],{"class":739},"sByVh",[480,741,742],{"class":486},": ",[480,744,745],{"class":494},"'/'\n",[480,747,749,751,753],{"class":482,"line":748},3,[480,750,704],{"class":739},[480,752,742],{"class":486},[480,754,755],{"class":494},"'.output/server'\n",[480,757,759,761,763],{"class":482,"line":758},4,[480,760,714],{"class":739},[480,762,742],{"class":486},[480,764,765],{"class":494},"'.output/public'\n",[480,767,769],{"class":482,"line":768},5,[480,770,771],{"class":733},"###### End of Repository/Build Configurations ######\n",[409,773,774],{},"That's it! Now Azure Static Web Apps will automatically deploy your Nitro-powered application on push.",[409,776,777,778,436],{},"If you are using runtimeConfig, you will likely want to configure the corresponding ",[432,779,782],{"href":780,"rel":781},"https://docs.microsoft.com/en-us/azure/static-web-apps/application-settings",[442],"environment variables on Azure",[784,785,786],"style",{},"html pre.shiki code .slsVL, html code.shiki .slsVL{--shiki-light:#24292E;--shiki-default:#E1E4E8;--shiki-dark:#E1E4E8}html pre.shiki code .so5gQ, html code.shiki .so5gQ{--shiki-light:#D73A49;--shiki-default:#F97583;--shiki-dark:#F97583}html pre.shiki code .sfrk1, html code.shiki .sfrk1{--shiki-light:#032F62;--shiki-default:#9ECBFF;--shiki-dark:#9ECBFF}html pre.shiki code .shcOC, html code.shiki .shcOC{--shiki-light:#6F42C1;--shiki-default:#B392F0;--shiki-dark:#B392F0}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 .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}",{"title":5,"searchDepth":507,"depth":507,"links":788},[789],{"id":406,"depth":507,"text":407,"children":790},[791,792,793,794],{"id":457,"depth":748,"text":458},{"id":529,"depth":748,"text":33},{"id":652,"depth":748,"text":653},{"id":666,"depth":748,"text":667},"Deploy Nitro apps to Azure Static Web apps or functions.","md",{},{},{"title":139,"description":795},"_ziLV4_9x-aU8lxEd5iUyff7nvgZ1rMj9jc9mk35XMg",[802,804],{"title":135,"path":136,"stem":137,"description":803,"children":-1},"Deploy Nitro apps to AWS Amplify Hosting.",{"title":143,"path":144,"stem":145,"description":805,"children":-1},"Deploy Nitro apps to Cleavr.",1776112485907]