[{"data":1,"prerenderedAt":625},["ShallowReactive",2],{"navigation":3,"-deploy-providers-azure":217,"-deploy-providers-azure-surround":620},[4,83,208,214],{"title":5,"path":6,"stem":7,"children":8,"icon":82},"","/docs","1.docs/1.index",[9,12,17,22,27,32,37,42,47,52,57,62,67,72,77],{"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},"Plugins","/docs/plugins","1.docs/50.plugins","ri:plug-line",{"title":53,"path":54,"stem":55,"icon":56},"Tasks","/docs/tasks","1.docs/50.tasks","codicon:run-all",{"title":58,"path":59,"stem":60,"icon":61},"Server Entry","/docs/server-entry","1.docs/6.server-entry","ri:server-line",{"title":63,"path":64,"stem":65,"icon":66},"Cache","/docs/cache","1.docs/7.cache","ri:speed-line",{"title":68,"path":69,"stem":70,"icon":71},"KV Storage","/docs/storage","1.docs/8.storage","carbon:datastore",{"title":73,"path":74,"stem":75,"icon":76},"Migration Guide","/docs/migration","1.docs/99.migration","ri:arrow-right-up-line",{"title":78,"path":79,"stem":80,"icon":81},"Nightly Channel","/docs/nightly","1.docs/99.nightly","ri:moon-fill","i-lucide-book-open",{"title":84,"path":85,"stem":86,"children":87,"icon":89},"Deploy","/deploy","2.deploy/0.index",[88,90,111],{"title":84,"path":85,"stem":86,"icon":89},"ri:upload-cloud-2-line",{"title":91,"path":92,"stem":93,"children":94,"page":110},"Runtimes","/deploy/runtimes","2.deploy/10.runtimes",[95,100,105],{"title":96,"path":97,"stem":98,"icon":99},"Node.js","/deploy/runtimes/node","2.deploy/10.runtimes/1.node","akar-icons:node-fill",{"title":101,"path":102,"stem":103,"icon":104},"Bun","/deploy/runtimes/bun","2.deploy/10.runtimes/bun","simple-icons:bun",{"title":106,"path":107,"stem":108,"icon":109},"Deno","/deploy/runtimes/deno","2.deploy/10.runtimes/deno","simple-icons:deno",false,{"title":112,"path":113,"stem":114,"children":115,"page":110},"Providers","/deploy/providers","2.deploy/20.providers",[116,120,124,128,132,136,140,144,148,152,156,160,164,168,172,176,180,184,188,192,196,200,204],{"title":117,"path":118,"stem":119},"Alwaysdata","/deploy/providers/alwaysdata","2.deploy/20.providers/alwaysdata",{"title":121,"path":122,"stem":123},"AWS Lambda","/deploy/providers/aws","2.deploy/20.providers/aws",{"title":125,"path":126,"stem":127},"AWS Amplify","/deploy/providers/aws-amplify","2.deploy/20.providers/aws-amplify",{"title":129,"path":130,"stem":131},"Azure","/deploy/providers/azure","2.deploy/20.providers/azure",{"title":133,"path":134,"stem":135},"Cleavr","/deploy/providers/cleavr","2.deploy/20.providers/cleavr",{"title":137,"path":138,"stem":139},"Cloudflare","/deploy/providers/cloudflare","2.deploy/20.providers/cloudflare",{"title":141,"path":142,"stem":143},"Deno Deploy","/deploy/providers/deno-deploy","2.deploy/20.providers/deno-deploy",{"title":145,"path":146,"stem":147},"DigitalOcean","/deploy/providers/digitalocean","2.deploy/20.providers/digitalocean",{"title":149,"path":150,"stem":151},"Firebase","/deploy/providers/firebase","2.deploy/20.providers/firebase",{"title":153,"path":154,"stem":155},"Flightcontrol","/deploy/providers/flightcontrol","2.deploy/20.providers/flightcontrol",{"title":157,"path":158,"stem":159},"Genezio","/deploy/providers/genezio","2.deploy/20.providers/genezio",{"title":161,"path":162,"stem":163},"GitHub Pages","/deploy/providers/github-pages","2.deploy/20.providers/github-pages",{"title":165,"path":166,"stem":167},"GitLab Pages","/deploy/providers/gitlab-pages","2.deploy/20.providers/gitlab-pages",{"title":169,"path":170,"stem":171},"Heroku","/deploy/providers/heroku","2.deploy/20.providers/heroku",{"title":173,"path":174,"stem":175},"IIS","/deploy/providers/iis","2.deploy/20.providers/iis",{"title":177,"path":178,"stem":179},"Koyeb","/deploy/providers/koyeb","2.deploy/20.providers/koyeb",{"title":181,"path":182,"stem":183},"Netlify","/deploy/providers/netlify","2.deploy/20.providers/netlify",{"title":185,"path":186,"stem":187},"Platform.sh","/deploy/providers/platform-sh","2.deploy/20.providers/platform-sh",{"title":189,"path":190,"stem":191},"Render.com","/deploy/providers/render","2.deploy/20.providers/render",{"title":193,"path":194,"stem":195},"StormKit","/deploy/providers/stormkit","2.deploy/20.providers/stormkit",{"title":197,"path":198,"stem":199},"Vercel","/deploy/providers/vercel","2.deploy/20.providers/vercel",{"title":201,"path":202,"stem":203},"Zeabur","/deploy/providers/zeabur","2.deploy/20.providers/zeabur",{"title":205,"path":206,"stem":207},"Zerops","/deploy/providers/zerops","2.deploy/20.providers/zerops",{"title":209,"path":210,"stem":211,"children":212,"icon":36},"Config","/config","3.config/0.index",[213],{"title":209,"path":210,"stem":211,"icon":36},{"title":5,"path":215,"stem":216},"/","index",{"id":218,"title":129,"body":219,"description":614,"extension":615,"meta":616,"navigation":617,"path":130,"seo":618,"stem":131,"__hash__":619},"content/2.deploy/20.providers/azure.md",{"type":220,"value":221,"toc":606},"minimark",[222,227,239,244,256,273,278,287,290,346,349,362,367,370,469,473,480,483,487,490,493,537,540,591,594,602],[223,224,226],"h2",{"id":225},"azure-static-web-apps","Azure static web apps",[228,229,230,234,235],"p",{},[231,232,233],"strong",{},"Preset:"," ",[236,237,238],"code",{},"azure-swa",[240,241],"read-more",{"title":242,"to":243},"Azure Static Web Apps","https://azure.microsoft.com/en-us/products/app-service/static",[245,246,247],"note",{},[228,248,249,250,255],{},"Integration with this provider is possible with ",[251,252,254],"a",{"href":253},"/deploy/#zero-config-providers","zero configuration",".",[228,257,258,262,263,268,269,272],{},[251,259,242],{"href":243,"rel":260},[261],"nofollow"," are designed to be deployed continuously in a ",[251,264,267],{"href":265,"rel":266},"https://docs.microsoft.com/en-us/azure/static-web-apps/github-actions-workflow",[261],"GitHub Actions workflow",". By default, Nitro will detect this deployment environment and enable the ",[236,270,271],{},"azure"," preset.",[274,275,277],"h3",{"id":276},"local-preview","Local preview",[228,279,280,281,286],{},"Install ",[251,282,285],{"href":283,"rel":284},"https://docs.microsoft.com/en-us/azure/azure-functions/functions-run-local",[261],"Azure Functions Core Tools"," if you want to test locally.",[228,288,289],{},"You can invoke a development environment to preview before deploying.",[291,292,296],"pre",{"className":293,"code":294,"language":295,"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",[236,297,298,324],{"__ignoreMap":5},[299,300,303,307,311,314,318,321],"span",{"class":301,"line":302},"line",1,[299,304,306],{"class":305},"slsVL","NITRO_PRESET",[299,308,310],{"class":309},"so5gQ","=",[299,312,271],{"class":313},"sfrk1",[299,315,317],{"class":316},"shcOC"," npx",[299,319,320],{"class":313}," nypm@latest",[299,322,323],{"class":313}," build\n",[299,325,327,330,333,336,339,343],{"class":301,"line":326},2,[299,328,329],{"class":316},"npx",[299,331,332],{"class":313}," @azure/static-web-apps-cli",[299,334,335],{"class":313}," start",[299,337,338],{"class":313}," .output/public",[299,340,342],{"class":341},"suiK_"," --api-location",[299,344,345],{"class":313}," .output/server\n",[274,347,33],{"id":348},"configuration",[228,350,351,352,357,358,361],{},"Azure Static Web Apps are ",[251,353,356],{"href":354,"rel":355},"https://learn.microsoft.com/en-us/azure/static-web-apps/configuration",[261],"configured"," using the ",[236,359,360],{},"staticwebapp.config.json"," file.",[228,363,364,365,272],{},"Nitro automatically generates this configuration file whenever the application is built with the ",[236,366,271],{},[228,368,369],{},"Nitro will automatically add the following properties based on the following criteria:",[371,372,373,389],"table",{},[374,375,376],"thead",{},[377,378,379,383,386],"tr",{},[380,381,382],"th",{},"Property",[380,384,385],{},"Criteria",[380,387,388],{},"Default",[390,391,392,419,440],"tbody",{},[377,393,394,404,415],{},[395,396,397],"td",{},[231,398,399],{},[251,400,403],{"href":401,"rel":402},"https://learn.microsoft.com/en-us/azure/static-web-apps/configuration#platform",[261],"platform.apiRuntime",[395,405,406,407,410,411,414],{},"Will automatically set to ",[236,408,409],{},"node:16"," or ",[236,412,413],{},"node:14"," depending on your package configuration.",[395,416,417],{},[236,418,409],{},[377,420,421,430,436],{},[395,422,423],{},[231,424,425],{},[251,426,429],{"href":427,"rel":428},"https://learn.microsoft.com/en-us/azure/static-web-apps/configuration#fallback-routes",[261],"navigationFallback.rewrite",[395,431,432,433],{},"Is always ",[236,434,435],{},"/api/server",[395,437,438],{},[236,439,435],{},[377,441,442,451,464],{},[395,443,444],{},[231,445,446],{},[251,447,450],{"href":448,"rel":449},"https://learn.microsoft.com/en-us/azure/static-web-apps/configuration#routes",[261],"routes",[395,452,453,454,457,458,461,462,255],{},"All prerendered routes are added. Additionally, if you do not have an ",[236,455,456],{},"index.html"," file an empty one is created for you for compatibility purposes and also requests to ",[236,459,460],{},"/index.html"," are redirected to the root directory which is handled by ",[236,463,435],{},[395,465,466],{},[236,467,468],{},"[]",[274,470,472],{"id":471},"custom-configuration","Custom configuration",[228,474,475,476,479],{},"You can alter the Nitro generated configuration using ",[236,477,478],{},"azure.config"," option.",[228,481,482],{},"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.",[274,484,486],{"id":485},"deploy-from-cicd-via-github-actions","Deploy from CI/CD via GitHub actions",[228,488,489],{},"When you link your GitHub repository to Azure Static Web Apps, a workflow file is added to the repository.",[228,491,492],{},"When you are asked to select your framework, select custom and provide the following information:",[371,494,495,505],{},[374,496,497],{},[377,498,499,502],{},[380,500,501],{},"Input",[380,503,504],{},"Value",[390,506,507,517,527],{},[377,508,509,514],{},[395,510,511],{},[231,512,513],{},"app_location",[395,515,516],{},"'/'",[377,518,519,524],{},[395,520,521],{},[231,522,523],{},"api_location",[395,525,526],{},"'.output/server'",[377,528,529,534],{},[395,530,531],{},[231,532,533],{},"output_location",[395,535,536],{},"'.output/public'",[228,538,539],{},"If you miss this step, you can always find the build configuration section in your workflow and update the build configuration:",[291,541,546],{"className":542,"code":543,"filename":544,"language":545,"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",[236,547,548,554,565,575,585],{"__ignoreMap":5},[299,549,550],{"class":301,"line":302},[299,551,553],{"class":552},"sCsY4","###### Repository/Build Configurations ######\n",[299,555,556,559,562],{"class":301,"line":326},[299,557,513],{"class":558},"sByVh",[299,560,561],{"class":305},": ",[299,563,564],{"class":313},"'/'\n",[299,566,568,570,572],{"class":301,"line":567},3,[299,569,523],{"class":558},[299,571,561],{"class":305},[299,573,574],{"class":313},"'.output/server'\n",[299,576,578,580,582],{"class":301,"line":577},4,[299,579,533],{"class":558},[299,581,561],{"class":305},[299,583,584],{"class":313},"'.output/public'\n",[299,586,588],{"class":301,"line":587},5,[299,589,590],{"class":552},"###### End of Repository/Build Configurations ######\n",[228,592,593],{},"That's it! Now Azure Static Web Apps will automatically deploy your Nitro-powered application on push.",[228,595,596,597,255],{},"If you are using runtimeConfig, you will likely want to configure the corresponding ",[251,598,601],{"href":599,"rel":600},"https://docs.microsoft.com/en-us/azure/static-web-apps/application-settings",[261],"environment variables on Azure",[603,604,605],"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":326,"depth":326,"links":607},[608],{"id":225,"depth":326,"text":226,"children":609},[610,611,612,613],{"id":276,"depth":567,"text":277},{"id":348,"depth":567,"text":33},{"id":471,"depth":567,"text":472},{"id":485,"depth":567,"text":486},"Deploy Nitro apps to Azure Static Web apps or functions.","md",{},{},{"title":129,"description":614},"_ziLV4_9x-aU8lxEd5iUyff7nvgZ1rMj9jc9mk35XMg",[621,623],{"title":125,"path":126,"stem":127,"description":622,"children":-1},"Deploy Nitro apps to AWS Amplify Hosting.",{"title":133,"path":134,"stem":135,"description":624,"children":-1},"Deploy Nitro apps to Cleavr.",1764004917762]