[{"data":1,"prerenderedAt":399},["ShallowReactive",2],{"navigation_docs":3,"-get-started-providers":192,"-get-started-providers-surround":394},[4,26,43,179],{"title":5,"path":6,"stem":7,"children":8,"page":25},"Get Started","/get-started","1.get-started",[9,13,17,21],{"title":10,"path":11,"stem":12},"Installation","/get-started/installation","1.get-started/1.installation",{"title":14,"path":15,"stem":16},"Configuration","/get-started/configuration","1.get-started/2.configuration",{"title":18,"path":19,"stem":20},"Providers","/get-started/providers","1.get-started/3.providers",{"title":22,"path":23,"stem":24},"Contributing","/get-started/contributing","1.get-started/4.contributing",false,{"title":27,"path":28,"stem":29,"children":30,"page":25},"Usage","/usage","2.usage",[31,35,39],{"title":32,"path":33,"stem":34},"\u003CNuxtImg>","/usage/nuxt-img","2.usage/1.nuxt-img",{"title":36,"path":37,"stem":38},"\u003CNuxtPicture>","/usage/nuxt-picture","2.usage/2.nuxt-picture",{"title":40,"path":41,"stem":42},"useImage()","/usage/use-image","2.usage/3.use-image",{"title":18,"path":44,"stem":45,"children":46,"page":25},"/providers","3.providers",[47,51,55,59,63,67,71,75,79,83,87,91,95,99,103,107,111,115,119,123,127,131,135,139,143,147,151,155,159,163,167,171,175],{"title":48,"path":49,"stem":50},"Aliyun","/providers/aliyun","3.providers/aliyun",{"title":52,"path":53,"stem":54},"AWS Amplify","/providers/aws-amplify","3.providers/aws-amplify",{"title":56,"path":57,"stem":58},"Bunny","/providers/bunny","3.providers/bunny",{"title":60,"path":61,"stem":62},"Caisy","/providers/caisy","3.providers/caisy",{"title":64,"path":65,"stem":66},"Cloudflare","/providers/cloudflare","3.providers/cloudflare",{"title":68,"path":69,"stem":70},"Cloudimage","/providers/cloudimage","3.providers/cloudimage",{"title":72,"path":73,"stem":74},"Cloudinary","/providers/cloudinary","3.providers/cloudinary",{"title":76,"path":77,"stem":78},"Contentful","/providers/contentful","3.providers/contentful",{"title":80,"path":81,"stem":82},"Directus","/providers/directus","3.providers/directus",{"title":84,"path":85,"stem":86},"Fastly","/providers/fastly","3.providers/fastly",{"title":88,"path":89,"stem":90},"Filerobot","/providers/filerobot","3.providers/filerobot",{"title":92,"path":93,"stem":94},"GitHub","/providers/github","3.providers/github",{"title":96,"path":97,"stem":98},"Glide","/providers/glide","3.providers/glide",{"title":100,"path":101,"stem":102},"Gumlet","/providers/gumlet","3.providers/gumlet",{"title":104,"path":105,"stem":106},"Hygraph","/providers/hygraph","3.providers/hygraph",{"title":108,"path":109,"stem":110},"ImageEngine","/providers/imageengine","3.providers/imageengine",{"title":112,"path":113,"stem":114},"ImageKit","/providers/imagekit","3.providers/imagekit",{"title":116,"path":117,"stem":118},"Imgix","/providers/imgix","3.providers/imgix",{"title":120,"path":121,"stem":122},"IPX","/providers/ipx","3.providers/ipx",{"title":124,"path":125,"stem":126},"Netlify","/providers/netlify","3.providers/netlify",{"title":128,"path":129,"stem":130},"None","/providers/none","3.providers/none",{"title":132,"path":133,"stem":134},"Prepr","/providers/prepr","3.providers/prepr",{"title":136,"path":137,"stem":138},"Prismic","/providers/prismic","3.providers/prismic",{"title":140,"path":141,"stem":142},"Sanity","/providers/sanity","3.providers/sanity",{"title":144,"path":145,"stem":146},"Shopify","/providers/shopify","3.providers/shopify",{"title":148,"path":149,"stem":150},"Sirv","/providers/sirv","3.providers/sirv",{"title":152,"path":153,"stem":154},"Storyblok","/providers/storyblok","3.providers/storyblok",{"title":156,"path":157,"stem":158},"Strapi","/providers/strapi","3.providers/strapi",{"title":160,"path":161,"stem":162},"Twicpics","/providers/twicpics","3.providers/twicpics",{"title":164,"path":165,"stem":166},"Unsplash","/providers/unsplash","3.providers/unsplash",{"title":168,"path":169,"stem":170},"Uploadcare","/providers/uploadcare","3.providers/uploadcare",{"title":172,"path":173,"stem":174},"Vercel","/providers/vercel","3.providers/vercel",{"title":176,"path":177,"stem":178},"Weserv","/providers/weserv","3.providers/weserv",{"title":180,"path":181,"stem":182,"children":183,"page":25},"Advanced","/advanced","4.advanced",[184,188],{"title":185,"path":186,"stem":187},"Custom Provider","/advanced/custom-provider","4.advanced/1.custom-provider",{"title":189,"path":190,"stem":191},"Static Images","/advanced/static-images","4.advanced/2.static-images",{"id":193,"title":18,"body":194,"description":387,"extension":388,"links":389,"meta":390,"navigation":391,"path":19,"seo":392,"stem":20,"__hash__":393},"docs/1.get-started/3.providers.md",{"type":195,"value":196,"toc":376},"minimark",[197,202,206,209,217,231,235,242,247,254,267,276,289,293,303,310,341,345,352,355,363,366,372],[198,199,201],"h2",{"id":200},"introduction-to-providers","Introduction to Providers",[203,204,205],"p",{},"Providers are integrations between Nuxt Image and third-party image transformation services. Each provider is responsible for generating correct URLs for that image transformation service.",[203,207,208],{},"Nuxt Image can be configured to work with any external image transformation service. Checkout the sidebar for a list of preconfigured providers.",[203,210,211,212,216],{},"If you are looking for a specific provider that is not already supported, you can ",[213,214,215],"a",{"href":186},"create your own provider",".",[203,218,219,220,223,224,226,227,230],{},"Nuxt Image will automatically optimize ",[221,222,32],"code",{}," and ",[221,225,36],{}," sources and accepts all ",[213,228,229],{"href":15},"options"," for specified targets, except for modifiers that are specific to other providers.",[198,232,234],{"id":233},"default-provider","Default Provider",[203,236,237,238,241],{},"The default optimizer and provider for Nuxt Image is ",[213,239,240],{"href":121},"ipx",". Either option can be used without any configuration.",[243,244,246],"h3",{"id":245},"local-images","Local Images",[203,248,249,250,253],{},"Images should be stored in the ",[221,251,252],{},"public/"," directory of your project.",[203,255,256,257,260,261,263,264,216],{},"For example, when rendering a ",[221,258,259],{},"\u003CNuxtImg src=\"/nuxt-icon.png\" />",", your PNG file should be placed in the ",[221,262,252],{}," directory under the path ",[221,265,266],{},"public/nuxt-icon.png",[203,268,269,270,216],{},"For more information, you can learn more about the ",[213,271,275],{"href":272,"rel":273},"https://nuxt.com/docs/guide/directory-structure/public",[274],"nofollow","public directory",[277,278,279,280,283,284,288],"note",{},"Images stored in the ",[221,281,282],{},"assets/"," directory are ",[285,286,287],"strong",{},"not"," processed with Nuxt Image because those images are managed by your bundler (such as Vite or webpack).",[243,290,292],{"id":291},"remote-images","Remote Images",[203,294,295,296,302],{},"Using the default provider, you can also optimize external URLs. For this, you need to add them to the ",[213,297,299],{"href":298},"/get-started/configuration#domains",[221,300,301],{},"domains"," option.",[203,304,305,306,309],{},"You can also add domains for remote images by setting the ",[221,307,308],{},"NUXT_IMAGE_DOMAINS"," environment variable to a comma-separated list of domains.",[311,312,317],"pre",{"className":313,"code":314,"language":315,"meta":316,"style":316},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","NUXT_IMAGE_DOMAINS=\"example.com,yourdomain.com\"\n","bash","",[221,318,319],{"__ignoreMap":316},[320,321,324,327,331,334,338],"span",{"class":322,"line":323},"line",1,[320,325,308],{"class":326},"sTEyZ",[320,328,330],{"class":329},"sMK4o","=",[320,332,333],{"class":329},"\"",[320,335,337],{"class":336},"sfazB","example.com,yourdomain.com",[320,339,340],{"class":329},"\"\n",[243,342,344],{"id":343},"environment-detection","Environment Detection",[203,346,347,348,351],{},"You can set the default provider using the ",[221,349,350],{},"NUXT_IMAGE_PROVIDER"," environment variable.",[203,353,354],{},"Providers detected automatically:",[356,357,358],"ul",{},[359,360,361],"li",{},[213,362,172],{"href":173},[243,364,185],{"id":365},"custom-provider",[203,367,368,369,216],{},"It is possible to define your own provider, learn more about ",[213,370,371],{"href":186},"how to create a custom provider",[373,374,375],"style",{},"html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}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":316,"searchDepth":377,"depth":377,"links":378},2,[379,380],{"id":200,"depth":377,"text":201},{"id":233,"depth":377,"text":234,"children":381},[382,384,385,386],{"id":245,"depth":383,"text":246},3,{"id":291,"depth":383,"text":292},{"id":343,"depth":383,"text":344},{"id":365,"depth":383,"text":185},"Nuxt Image supports multiple providers for high performance.","md",null,{},true,{"title":18,"description":387},"ayxM7wITMvNKLv_Z6XEvMQzudJ02PjA-ppNBEiU7UuY",[395,397],{"title":14,"path":15,"stem":16,"description":396,"children":-1},"Nuxt Image is configured with sensible defaults.",{"title":22,"path":23,"stem":24,"description":398,"children":-1},"We can never thank you enough for your contributions.",1762265120426]