[{"data":1,"prerenderedAt":632},["ShallowReactive",2],{"navigation":3,"-deploy-providers-azure":224,"-deploy-providers-azure-surround":627},[4,83,208,214,221],{"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":215,"path":216,"stem":217,"children":218,"icon":220},"Examples","/examples","4.examples/0.index",[219],{"title":215,"path":216,"stem":217,"icon":220},"i-lucide-folder-code",{"title":5,"path":222,"stem":223},"/","index",{"id":225,"title":129,"body":226,"description":621,"extension":622,"meta":623,"navigation":624,"path":130,"seo":625,"stem":131,"__hash__":626},"content/2.deploy/20.providers/azure.md",{"type":227,"value":228,"toc":613},"minimark",[229,234,246,251,263,280,285,294,297,353,356,369,374,377,476,480,487,490,494,497,500,544,547,598,601,609],[230,231,233],"h2",{"id":232},"azure-static-web-apps","Azure static web apps",[235,236,237,241,242],"p",{},[238,239,240],"strong",{},"Preset:"," ",[243,244,245],"code",{},"azure-swa",[247,248],"read-more",{"title":249,"to":250},"Azure Static Web Apps","https://azure.microsoft.com/en-us/products/app-service/static",[252,253,254],"note",{},[235,255,256,257,262],{},"Integration with this provider is possible with ",[258,259,261],"a",{"href":260},"/deploy/#zero-config-providers","zero configuration",".",[235,264,265,269,270,275,276,279],{},[258,266,249],{"href":250,"rel":267},[268],"nofollow"," are designed to be deployed continuously in a ",[258,271,274],{"href":272,"rel":273},"https://docs.microsoft.com/en-us/azure/static-web-apps/github-actions-workflow",[268],"GitHub Actions workflow",". By default, Nitro will detect this deployment environment and enable the ",[243,277,278],{},"azure"," preset.",[281,282,284],"h3",{"id":283},"local-preview","Local preview",[235,286,287,288,293],{},"Install ",[258,289,292],{"href":290,"rel":291},"https://docs.microsoft.com/en-us/azure/azure-functions/functions-run-local",[268],"Azure Functions Core Tools"," if you want to test locally.",[235,295,296],{},"You can invoke a development environment to preview before deploying.",[298,299,303],"pre",{"className":300,"code":301,"language":302,"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",[243,304,305,331],{"__ignoreMap":5},[306,307,310,314,318,321,325,328],"span",{"class":308,"line":309},"line",1,[306,311,313],{"class":312},"slsVL","NITRO_PRESET",[306,315,317],{"class":316},"so5gQ","=",[306,319,278],{"class":320},"sfrk1",[306,322,324],{"class":323},"shcOC"," npx",[306,326,327],{"class":320}," nypm@latest",[306,329,330],{"class":320}," build\n",[306,332,334,337,340,343,346,350],{"class":308,"line":333},2,[306,335,336],{"class":323},"npx",[306,338,339],{"class":320}," @azure/static-web-apps-cli",[306,341,342],{"class":320}," start",[306,344,345],{"class":320}," .output/public",[306,347,349],{"class":348},"suiK_"," --api-location",[306,351,352],{"class":320}," .output/server\n",[281,354,33],{"id":355},"configuration",[235,357,358,359,364,365,368],{},"Azure Static Web Apps are ",[258,360,363],{"href":361,"rel":362},"https://learn.microsoft.com/en-us/azure/static-web-apps/configuration",[268],"configured"," using the ",[243,366,367],{},"staticwebapp.config.json"," file.",[235,370,371,372,279],{},"Nitro automatically generates this configuration file whenever the application is built with the ",[243,373,278],{},[235,375,376],{},"Nitro will automatically add the following properties based on the following criteria:",[378,379,380,396],"table",{},[381,382,383],"thead",{},[384,385,386,390,393],"tr",{},[387,388,389],"th",{},"Property",[387,391,392],{},"Criteria",[387,394,395],{},"Default",[397,398,399,426,447],"tbody",{},[384,400,401,411,422],{},[402,403,404],"td",{},[238,405,406],{},[258,407,410],{"href":408,"rel":409},"https://learn.microsoft.com/en-us/azure/static-web-apps/configuration#platform",[268],"platform.apiRuntime",[402,412,413,414,417,418,421],{},"Will automatically set to ",[243,415,416],{},"node:16"," or ",[243,419,420],{},"node:14"," depending on your package configuration.",[402,423,424],{},[243,425,416],{},[384,427,428,437,443],{},[402,429,430],{},[238,431,432],{},[258,433,436],{"href":434,"rel":435},"https://learn.microsoft.com/en-us/azure/static-web-apps/configuration#fallback-routes",[268],"navigationFallback.rewrite",[402,438,439,440],{},"Is always ",[243,441,442],{},"/api/server",[402,444,445],{},[243,446,442],{},[384,448,449,458,471],{},[402,450,451],{},[238,452,453],{},[258,454,457],{"href":455,"rel":456},"https://learn.microsoft.com/en-us/azure/static-web-apps/configuration#routes",[268],"routes",[402,459,460,461,464,465,468,469,262],{},"All prerendered routes are added. Additionally, if you do not have an ",[243,462,463],{},"index.html"," file an empty one is created for you for compatibility purposes and also requests to ",[243,466,467],{},"/index.html"," are redirected to the root directory which is handled by ",[243,470,442],{},[402,472,473],{},[243,474,475],{},"[]",[281,477,479],{"id":478},"custom-configuration","Custom configuration",[235,481,482,483,486],{},"You can alter the Nitro generated configuration using ",[243,484,485],{},"azure.config"," option.",[235,488,489],{},"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.",[281,491,493],{"id":492},"deploy-from-cicd-via-github-actions","Deploy from CI/CD via GitHub actions",[235,495,496],{},"When you link your GitHub repository to Azure Static Web Apps, a workflow file is added to the repository.",[235,498,499],{},"When you are asked to select your framework, select custom and provide the following information:",[378,501,502,512],{},[381,503,504],{},[384,505,506,509],{},[387,507,508],{},"Input",[387,510,511],{},"Value",[397,513,514,524,534],{},[384,515,516,521],{},[402,517,518],{},[238,519,520],{},"app_location",[402,522,523],{},"'/'",[384,525,526,531],{},[402,527,528],{},[238,529,530],{},"api_location",[402,532,533],{},"'.output/server'",[384,535,536,541],{},[402,537,538],{},[238,539,540],{},"output_location",[402,542,543],{},"'.output/public'",[235,545,546],{},"If you miss this step, you can always find the build configuration section in your workflow and update the build configuration:",[298,548,553],{"className":549,"code":550,"filename":551,"language":552,"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",[243,554,555,561,572,582,592],{"__ignoreMap":5},[306,556,557],{"class":308,"line":309},[306,558,560],{"class":559},"sCsY4","###### Repository/Build Configurations ######\n",[306,562,563,566,569],{"class":308,"line":333},[306,564,520],{"class":565},"sByVh",[306,567,568],{"class":312},": ",[306,570,571],{"class":320},"'/'\n",[306,573,575,577,579],{"class":308,"line":574},3,[306,576,530],{"class":565},[306,578,568],{"class":312},[306,580,581],{"class":320},"'.output/server'\n",[306,583,585,587,589],{"class":308,"line":584},4,[306,586,540],{"class":565},[306,588,568],{"class":312},[306,590,591],{"class":320},"'.output/public'\n",[306,593,595],{"class":308,"line":594},5,[306,596,597],{"class":559},"###### End of Repository/Build Configurations ######\n",[235,599,600],{},"That's it! Now Azure Static Web Apps will automatically deploy your Nitro-powered application on push.",[235,602,603,604,262],{},"If you are using runtimeConfig, you will likely want to configure the corresponding ",[258,605,608],{"href":606,"rel":607},"https://docs.microsoft.com/en-us/azure/static-web-apps/application-settings",[268],"environment variables on Azure",[610,611,612],"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":333,"depth":333,"links":614},[615],{"id":232,"depth":333,"text":233,"children":616},[617,618,619,620],{"id":283,"depth":574,"text":284},{"id":355,"depth":574,"text":33},{"id":478,"depth":574,"text":479},{"id":492,"depth":574,"text":493},"Deploy Nitro apps to Azure Static Web apps or functions.","md",{},{},{"title":129,"description":621},"_ziLV4_9x-aU8lxEd5iUyff7nvgZ1rMj9jc9mk35XMg",[628,630],{"title":125,"path":126,"stem":127,"description":629,"children":-1},"Deploy Nitro apps to AWS Amplify Hosting.",{"title":133,"path":134,"stem":135,"description":631,"children":-1},"Deploy Nitro apps to Cleavr.",1773050451271]