[{"data":1,"prerenderedAt":518},["ShallowReactive",2],{"navigation":3,"-deploy-providers-netlify":225,"-deploy-providers-netlify-surround":513},[4,76,219],{"title":5,"path":6,"stem":7,"children":8,"icon":10},"Docs","/guide","1.guide/0.index",[9,11,16,21,26,31,36,41,46,51,56,61,66,71],{"title":5,"path":6,"stem":7,"icon":10},"ph:book-open-duotone",{"title":12,"path":13,"stem":14,"icon":15},"Server Utils","/guide/utils","1.guide/1.utils","ri:tools-line",{"title":17,"path":18,"stem":19,"icon":20},"Tasks","/guide/tasks","1.guide/10.tasks","codicon:run-all",{"title":22,"path":23,"stem":24,"icon":25},"Server Routes","/guide/routing","1.guide/2.routing","ri:direction-line",{"title":27,"path":28,"stem":29,"icon":30},"WebSocket","/guide/websocket","1.guide/3.websocket","cib:socket-io",{"title":32,"path":33,"stem":34,"icon":35},"KV Storage","/guide/storage","1.guide/4.storage","carbon:datastore",{"title":37,"path":38,"stem":39,"icon":40},"SQL Database","/guide/database","1.guide/5.database","ri:database-2-line",{"title":42,"path":43,"stem":44,"icon":45},"Cache","/guide/cache","1.guide/6.cache","ri:speed-line",{"title":47,"path":48,"stem":49,"icon":50},"Fetch","/guide/fetch","1.guide/7.fetch","ri:global-line",{"title":52,"path":53,"stem":54,"icon":55},"Assets","/guide/assets","1.guide/8.assets","ri:image-2-line",{"title":57,"path":58,"stem":59,"icon":60},"Plugins","/guide/plugins","1.guide/9.plugins","ri:plug-line",{"title":62,"path":63,"stem":64,"icon":65},"Configuration","/guide/configuration","1.guide/97.configuration","ri:settings-3-line",{"title":67,"path":68,"stem":69,"icon":70},"TypeScript","/guide/typescript","1.guide/98.typescript","tabler:brand-typescript",{"title":72,"path":73,"stem":74,"icon":75},"Nightly Channel","/guide/nightly","1.guide/99.nightly","ri:moon-fill",{"title":77,"path":78,"stem":79,"children":80,"icon":82},"Deploy","/deploy","2.deploy/0.index",[81,83,87,113,118],{"title":77,"path":78,"stem":79,"icon":82},"ri:upload-cloud-2-line",{"title":84,"path":85,"stem":86,"icon":50},"Edge Workers","/deploy/workers","2.deploy/1.workers",{"title":88,"path":89,"stem":90,"children":91,"page":112},"Runtimes","/deploy/runtimes","2.deploy/10.runtimes",[92,97,102,107],{"title":93,"path":94,"stem":95,"icon":96},"Node.js","/deploy/runtimes/node","2.deploy/10.runtimes/1.node","akar-icons:node-fill",{"title":98,"path":99,"stem":100,"icon":101},"WinterJS","/deploy/runtimes/_winterjs","2.deploy/10.runtimes/_winterjs","game-icons:cold-heart",{"title":103,"path":104,"stem":105,"icon":106},"Bun","/deploy/runtimes/bun","2.deploy/10.runtimes/bun","simple-icons:bun",{"title":108,"path":109,"stem":110,"icon":111},"Deno","/deploy/runtimes/deno","2.deploy/10.runtimes/deno","simple-icons:deno",false,{"title":114,"path":115,"stem":116,"icon":117},"Custom Preset","/deploy/custom-presets","2.deploy/2.custom-presets","ri:file-code-line",{"title":119,"path":120,"stem":121,"children":122,"page":112},"Providers","/deploy/providers","2.deploy/20.providers",[123,127,131,135,139,143,147,151,155,159,163,167,171,175,179,183,187,191,195,199,203,207,211,215],{"title":124,"path":125,"stem":126},"Alwaysdata","/deploy/providers/alwaysdata","2.deploy/20.providers/alwaysdata",{"title":128,"path":129,"stem":130},"AWS Lambda","/deploy/providers/aws","2.deploy/20.providers/aws",{"title":132,"path":133,"stem":134},"AWS Amplify","/deploy/providers/aws-amplify","2.deploy/20.providers/aws-amplify",{"title":136,"path":137,"stem":138},"Azure","/deploy/providers/azure","2.deploy/20.providers/azure",{"title":140,"path":141,"stem":142},"Cleavr","/deploy/providers/cleavr","2.deploy/20.providers/cleavr",{"title":144,"path":145,"stem":146},"Cloudflare","/deploy/providers/cloudflare","2.deploy/20.providers/cloudflare",{"title":148,"path":149,"stem":150},"Deno Deploy","/deploy/providers/deno-deploy","2.deploy/20.providers/deno-deploy",{"title":152,"path":153,"stem":154},"DigitalOcean","/deploy/providers/digitalocean","2.deploy/20.providers/digitalocean",{"title":156,"path":157,"stem":158},"Edgio","/deploy/providers/edgio","2.deploy/20.providers/edgio",{"title":160,"path":161,"stem":162},"Firebase","/deploy/providers/firebase","2.deploy/20.providers/firebase",{"title":164,"path":165,"stem":166},"Flightcontrol","/deploy/providers/flightcontrol","2.deploy/20.providers/flightcontrol",{"title":168,"path":169,"stem":170},"Genezio","/deploy/providers/genezio","2.deploy/20.providers/genezio",{"title":172,"path":173,"stem":174},"GitHub Pages","/deploy/providers/github-pages","2.deploy/20.providers/github-pages",{"title":176,"path":177,"stem":178},"GitLab Pages","/deploy/providers/gitlab-pages","2.deploy/20.providers/gitlab-pages",{"title":180,"path":181,"stem":182},"Heroku","/deploy/providers/heroku","2.deploy/20.providers/heroku",{"title":184,"path":185,"stem":186},"IIS","/deploy/providers/iis","2.deploy/20.providers/iis",{"title":188,"path":189,"stem":190},"Koyeb","/deploy/providers/koyeb","2.deploy/20.providers/koyeb",{"title":192,"path":193,"stem":194},"Netlify","/deploy/providers/netlify","2.deploy/20.providers/netlify",{"title":196,"path":197,"stem":198},"Platform.sh","/deploy/providers/platform-sh","2.deploy/20.providers/platform-sh",{"title":200,"path":201,"stem":202},"Render.com","/deploy/providers/render","2.deploy/20.providers/render",{"title":204,"path":205,"stem":206},"StormKit","/deploy/providers/stormkit","2.deploy/20.providers/stormkit",{"title":208,"path":209,"stem":210},"Vercel","/deploy/providers/vercel","2.deploy/20.providers/vercel",{"title":212,"path":213,"stem":214},"Zeabur","/deploy/providers/zeabur","2.deploy/20.providers/zeabur",{"title":216,"path":217,"stem":218},"Zerops","/deploy/providers/zerops","2.deploy/20.providers/zerops",{"title":220,"path":221,"stem":222,"children":223,"icon":65},"Config","/config","3.config/0.index",[224],{"title":220,"path":221,"stem":222,"icon":65},{"id":226,"title":192,"body":227,"description":507,"extension":508,"meta":509,"navigation":510,"path":193,"seo":511,"stem":194,"__hash__":512},"content/2.deploy/20.providers/netlify.md",{"type":228,"value":229,"toc":502},"minimark",[230,242,247,259,268,281,362,372,375,397,405,413,418,425,428,432,435,441,445,452,468,471,475,479,498],[231,232,233,237,238],"p",{},[234,235,236],"strong",{},"Preset:"," ",[239,240,241],"code",{},"netlify",[243,244],"read-more",{"title":245,"to":246},"Netlify Functions","https://www.netlify.com/platform/core/functions/",[248,249,250],"note",{},[231,251,252,253,258],{},"Integration with this provider is possible with ",[254,255,257],"a",{"href":256},"/deploy/#zero-config-providers","zero configuration",".",[231,260,261,262,267],{},"Normally, the deployment to Netlify does not require any configuration.\nNitro will auto-detect that you are in a ",[254,263,192],{"href":264,"rel":265},"https://www.netlify.com",[266],"nofollow"," build environment and build the correct version of your server.",[231,269,270,271,276,277,280],{},"To enabling Netlify Functions 2.0 and using its features (e.g. streaming responses and ",[254,272,275],{"href":273,"rel":274},"https://docs.netlify.com/blobs/overview/",[266],"Netlify Blobs","), you need a compatibility date set to ",[239,278,279],{},"2024-05-07"," or later in your nitro configuration file.",[282,283,284,333],"code-group",{},[285,286,292],"pre",{"className":287,"code":288,"filename":289,"language":290,"meta":291,"style":291},"language-ts shiki shiki-themes github-light github-dark github-dark","export default defineNitroConfig({\n    compatibilityDate: \"2024-05-07\",\n})\n","nitro.config.ts","ts","",[239,293,294,314,327],{"__ignoreMap":291},[295,296,299,303,306,310],"span",{"class":297,"line":298},"line",1,[295,300,302],{"class":301},"so5gQ","export",[295,304,305],{"class":301}," default",[295,307,309],{"class":308},"shcOC"," defineNitroConfig",[295,311,313],{"class":312},"slsVL","({\n",[295,315,317,320,324],{"class":297,"line":316},2,[295,318,319],{"class":312},"    compatibilityDate: ",[295,321,323],{"class":322},"sfrk1","\"2024-05-07\"",[295,325,326],{"class":312},",\n",[295,328,330],{"class":297,"line":329},3,[295,331,332],{"class":312},"})\n",[285,334,337],{"className":287,"code":335,"filename":336,"language":290,"meta":291,"style":291},"export default defineNuxtConfig({\n    compatibilityDate: \"2024-05-07\",\n})\n","nuxt.config.ts",[239,338,339,350,358],{"__ignoreMap":291},[295,340,341,343,345,348],{"class":297,"line":298},[295,342,302],{"class":301},[295,344,305],{"class":301},[295,346,347],{"class":308}," defineNuxtConfig",[295,349,313],{"class":312},[295,351,352,354,356],{"class":297,"line":316},[295,353,319],{"class":312},[295,355,323],{"class":322},[295,357,326],{"class":312},[295,359,360],{"class":297,"line":329},[295,361,332],{"class":312},[231,363,364,365,368,369,258],{},"For new sites, Netlify will detect that you are using Nitro and set the publish directory to ",[239,366,367],{},"dist"," and build command to ",[239,370,371],{},"npm run build",[231,373,374],{},"If you are upgrading an existing site you should check these and update them if needed.",[231,376,377,378,384,385,392,393,396],{},"If you want to add custom redirects, you can do so with ",[254,379,381],{"href":380},"/config#routerules",[239,382,383],{},"routeRules"," or by adding a ",[254,386,389],{"href":387,"rel":388},"https://docs.netlify.com/routing/redirects/#syntax-for-the-redirects-file",[266],[239,390,391],{},"_redirects"," file to your ",[239,394,395],{},"public"," directory.",[231,398,399,400,258],{},"For deployment, just push to your git repository ",[254,401,404],{"href":402,"rel":403},"https://docs.netlify.com/configure-builds/get-started/",[266],"as you would normally do for Netlify",[248,406,407],{"type":248},[231,408,409,410,412],{},"Make sure the publish directory is set to ",[239,411,367],{}," when creating a new project.",[414,415,417],"h2",{"id":416},"netlify-edge-functions","Netlify edge functions",[231,419,420,237,422],{},[234,421,236],{},[239,423,424],{},"netlify_edge",[231,426,427],{},"Netlify Edge Functions use Deno and the powerful V8 JavaScript runtime to let you run globally distributed functions for the fastest possible response times.",[243,429],{"title":430,"to":431},"Netlify Edge functions","https://docs.netlify.com/edge-functions/overview/",[231,433,434],{},"Nitro output can directly run the server at the edge. Closer to your users.",[248,436,437],{"type":248},[231,438,409,439,412],{},[239,440,367],{},[414,442,444],{"id":443},"on-demand-builders","On-demand builders",[231,446,447,237,449],{},[234,448,236],{},[239,450,451],{},"netlify_builder",[453,454,455],"warning",{},[231,456,457,460,461,463,464,467],{},[234,458,459],{},"Note:"," This preset is deprecated. Instead, use the ",[239,462,241],{}," preset with the ",[239,465,466],{},"isr"," route rule.",[231,469,470],{},"On-demand Builders are serverless functions used to generate web content as needed that’s automatically cached on Netlify’s Edge CDN. They enable you to build pages for your site when a user visits them for the first time and then cache them at the edge for subsequent visits.",[243,472],{"title":473,"to":474},"Netlify On-demand Builders","https://docs.netlify.com/configure-builds/on-demand-builders/",[414,476,478],{"id":477},"custom-deploy-configuration","Custom deploy configuration",[231,480,481,482,484,485,488,489,492,493,258],{},"You can provide additional deploy configuration using the ",[239,483,241],{}," key inside ",[239,486,487],{},"nitro.config",". It will be merged with built-in auto-generated config. Currently the only supported value is ",[239,490,491],{},"images.remote_images",", for ",[254,494,497],{"href":495,"rel":496},"https://docs.netlify.com/image-cdn/create-integration/",[266],"configuring Netlify Image CDN",[499,500,501],"style",{},"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}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 .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);}",{"title":291,"searchDepth":316,"depth":316,"links":503},[504,505,506],{"id":416,"depth":316,"text":417},{"id":443,"depth":316,"text":444},{"id":477,"depth":316,"text":478},"Deploy Nitro apps to Netlify functions or edge.","md",{},{},{"title":192,"description":507},"tFig6agqmFjLPYbQNpRVP259HVspanlfoXnswHckqiw",[514,516],{"title":188,"path":189,"stem":190,"description":515,"children":-1},"Deploy Nitro apps to Koyeb.",{"title":196,"path":197,"stem":198,"description":517,"children":-1},"Deploy Nitro apps to platform.sh",1775119638021]