[{"data":1,"prerenderedAt":2444},["ShallowReactive",2],{"navigation_docs":3,"-going-further-migration":139,"-going-further-migration-surround":2441},[4,31,77,108],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":30},"Getting Started","i-lucide-play","\u002Fgetting-started","1.getting-started",[10,15,20,25],{"title":11,"path":12,"stem":13,"icon":14},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction","i-lucide-home",{"title":16,"path":17,"stem":18,"icon":19},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation","i-lucide-plug",{"title":21,"path":22,"stem":23,"icon":24},"Usage","\u002Fgetting-started\u002Fusage","1.getting-started\u002F3.usage","i-lucide-code",{"title":26,"path":27,"stem":28,"icon":29},"Editor","\u002Fgetting-started\u002Feditor","1.getting-started\u002F4.editor","i-lucide-wrench",false,{"title":32,"icon":33,"path":34,"stem":35,"children":36,"page":30},"Essentials","i-lucide-book","\u002Fessentials","2.essentials",[37,42,47,52,57,62,67,72],{"title":38,"path":39,"stem":40,"icon":41},"Setup Shopify","\u002Fessentials\u002Fsetup-shopify","2.essentials\u002F1.setup-shopify","i-lucide-shopping-bag",{"title":43,"path":44,"stem":45,"icon":46},"Module Config","\u002Fessentials\u002Fconfiguration","2.essentials\u002F2.configuration","i-lucide-anvil",{"title":48,"path":49,"stem":50,"icon":51},"Storefront API","\u002Fessentials\u002Fstorefront","2.essentials\u002F3.storefront","i-lucide-store",{"title":53,"path":54,"stem":55,"icon":56},"Customer API","\u002Fessentials\u002Fcustomer-account","2.essentials\u002F4.customer-account","i-lucide-user",{"title":58,"path":59,"stem":60,"icon":61},"Admin API","\u002Fessentials\u002Fadmin","2.essentials\u002F5.admin","i-lucide-shield",{"title":63,"path":64,"stem":65,"icon":66},"Error Handling","\u002Fessentials\u002Ferror-handling","2.essentials\u002F6.error-handling","i-lucide-bug",{"title":68,"path":69,"stem":70,"icon":71},"Caching","\u002Fessentials\u002Fcaching","2.essentials\u002F7.caching","i-lucide-rabbit",{"title":73,"path":74,"stem":75,"icon":76},"Analytics","\u002Fessentials\u002Fanalytics","2.essentials\u002F8.analytics","i-lucide-chart-line",{"title":78,"icon":79,"path":80,"stem":81,"children":82,"page":30},"Examples","i-lucide-chef-hat","\u002Fexamples","3.examples",[83,88,93,98,103],{"title":84,"path":85,"stem":86,"icon":87},"Navigation Menu","\u002Fexamples\u002Fnavigation-tree","3.examples\u002F1.navigation-tree","i-lucide-menu",{"title":89,"path":90,"stem":91,"icon":92},"Collection Page","\u002Fexamples\u002Fcollection-page","3.examples\u002F2.collection-page","i-lucide-group",{"title":94,"path":95,"stem":96,"icon":97},"Collection Filters","\u002Fexamples\u002Fcollection-filters","3.examples\u002F3.collection-filters","i-lucide-funnel",{"title":99,"path":100,"stem":101,"icon":102},"Product Page","\u002Fexamples\u002Fproduct-page","3.examples\u002F4.product-page","i-lucide-shirt",{"title":104,"path":105,"stem":106,"icon":107},"Using the Cart","\u002Fexamples\u002Fcart","3.examples\u002F5.cart","i-lucide-shopping-cart",{"title":109,"icon":110,"path":111,"stem":112,"children":113,"page":30},"Going Further","i-lucide-pickaxe","\u002Fgoing-further","4.going-further",[114,119,124,129,134],{"title":115,"path":116,"stem":117,"icon":118},"Hooks","\u002Fgoing-further\u002Fhooks","4.going-further\u002F1.hooks","i-lucide-between-horizontal-start",{"title":120,"path":121,"stem":122,"icon":123},"Codegen","\u002Fgoing-further\u002Fcodegen","4.going-further\u002F2.codegen","i-lucide-wand-sparkles",{"title":125,"path":126,"stem":127,"icon":128},"GraphQL Explorer","\u002Fgoing-further\u002Fexplorer","4.going-further\u002F3.explorer","i-lucide-app-window",{"title":130,"path":131,"stem":132,"icon":133},"Webhooks","\u002Fgoing-further\u002Fwebhooks","4.going-further\u002F4.webhooks","i-lucide-fishing-hook",{"title":135,"path":136,"stem":137,"icon":138},"Migrating to 2.0","\u002Fgoing-further\u002Fmigration","4.going-further\u002F5.migration","i-lucide-circle-arrow-up",{"id":140,"title":135,"body":141,"description":2434,"extension":2435,"links":2436,"meta":2437,"navigation":2438,"path":136,"seo":2439,"stem":137,"__hash__":2440},"docs\u002F4.going-further\u002F5.migration.md",{"type":142,"value":143,"toc":2417},"minimark",[144,153,160,165,193,197,200,366,369,439,456,467,489,495,499,517,522,533,640,665,669,679,683,714,717,766,792,796,934,982,1027,1034,1042,1046,1212,1227,1231,1304,1320,1324,1729,1731,1742,1987,2027,2031,2084,2088,2322,2338,2342,2413],[145,146,147,148,152],"p",{},"Version 2 of the module is built on ",[149,150,151],"code",{},"@shopify\u002Fhydrogen"," 2026.10.\nThe module now adds Hydrogen's storefront routes, uses Hydrogen's customer accounts for the login and loads Shopify's own scripts for analytics.\nThe GraphQL clients, code generation, the explorer and webhooks work as before, apart from the renames below.",[145,154,155,156,159],{},"When Nuxt starts, the module shows a warning for each option it no longer supports, and ",[149,157,158],{},"nuxt typecheck"," reports renamed hooks and removed types.\nNot every change shows up this way, so go through each section of this guide.",[161,162,164],"h2",{"id":163},"requirements","Requirements",[166,167,168,176,184],"ul",{},[169,170,171,175],"li",{},[172,173,174],"strong",{},"Nuxt 4 or newer is required."," Nuxt 3 is no longer supported. On Nuxt 3, Nuxt disables the module with a warning, so stay on version 1 until you upgrade Nuxt.",[169,177,178,183],{},[172,179,180,182],{},[149,181,151],{}," 2026.10.3 or newer is required."," In version 1, only customer accounts needed it. It is now a required peer dependency, also for the storefront and admin clients. Install it in your own dependencies, because your app also imports from it, for example for the cart. npm doesn't install the module next to an older version of Hydrogen, so upgrade Hydrogen first.",[169,185,186,192],{},[172,187,188,191],{},[149,189,190],{},"@shopify\u002Fhydrogen-react"," is no longer used."," Analytics in version 1 was built on it. You can remove it, unless your own code uses it.",[161,194,196],{"id":195},"routes","Routes",[145,198,199],{},"When the storefront client is configured or analytics is enabled, the module adds Hydrogen's storefront routes.\nThey are matched before your own routes and pages, so move any of your routes that use one of these paths:",[201,202,203,216],"table",{},[204,205,206],"thead",{},[207,208,209,213],"tr",{},[210,211,212],"th",{},"Path",[210,214,215],{},"Description",[217,218,219,239,253,266,276,290,320,330,346,356],"tbody",{},[207,220,221,227],{},[222,223,224],"td",{},[149,225,226],{},"\u002Fapi\u002F\u003Cversion>\u002Fgraphql.json",[222,228,229,230,235,236],{},"The ",[231,232,234],"a",{"href":233},"\u002Fessentials\u002Fstorefront#the-storefront-api-proxy","Storefront API proxy",", replaces ",[149,237,238],{},"\u002F_proxy\u002Fstorefront",[207,240,241,246],{},[222,242,243],{},[149,244,245],{},"\u002Fapi\u002Fcart",[222,247,229,248,252],{},[231,249,251],{"href":250},"\u002Fessentials\u002Fstorefront#cart","cart"," API",[207,254,255,260],{},[222,256,257],{},[149,258,259],{},"GET \u002Fapi\u002Fpredictive-search",[222,261,229,262,252],{},[231,263,265],{"href":264},"\u002Fessentials\u002Fstorefront#predictive-search","predictive search",[207,267,268,273],{},[222,269,270],{},[149,271,272],{},"\u002Fcheckout",[222,274,275],{},"Redirects to the checkout of the visitor's cart",[207,277,278,287],{},[222,279,280,283,284],{},[149,281,282],{},"\u002Fcart\u002F\u003Cvariant>:\u003Cquantity>",", ",[149,285,286],{},"\u002Fbuy\u002F\u003Citem>:\u003Cquantity>",[222,288,289],{},"Cart and buy permalinks",[207,291,292,309],{},[222,293,294,283,297,283,300,283,303,283,306],{},[149,295,296],{},"\u002Fcart.js",[149,298,299],{},"\u002Fcart\u002Fadd",[149,301,302],{},"\u002Fcart\u002Fupdate",[149,304,305],{},"\u002Fcart\u002Fchange",[149,307,308],{},"\u002Fcart\u002Fclear",[222,310,311,312,315,316,319],{},"The AJAX cart API used by Shopify's scripts, also with ",[149,313,314],{},".js"," or ",[149,317,318],{},".json"," and behind a locale prefix",[207,321,322,327],{},[222,323,324],{},[149,325,326],{},"POST \u002F__shopify\u002Fapi\u002Fcollect",[222,328,329],{},"Shopify's performance beacon",[207,331,332,343],{},[222,333,334,283,337,283,340],{},[149,335,336],{},"\u002F.well-known\u002Fucp",[149,338,339],{},"\u002Fapi\u002Fmcp",[149,341,342],{},"\u002Fapi\u002Fucp\u002Fmcp",[222,344,345],{},"Your store's UCP business profile and the MCP endpoints for AI agents",[207,347,348,353],{},[222,349,350],{},[149,351,352],{},"\u002F.well-known\u002Fapple-developer-merchantid-domain-association",[222,354,355],{},"The domain verification for Apple Pay",[207,357,358,363],{},[222,359,360],{},[149,361,362],{},"\u002F.well-known\u002Fshopify\u002Ffec\u002Fproduce",[222,364,365],{},"Shopify's event collector",[145,367,368],{},"When the customer account client is configured, the module adds these routes:",[201,370,371,379],{},[204,372,373],{},[207,374,375,377],{},[210,376,212],{},[210,378,215],{},[217,380,381,407,423],{},[207,382,383,397],{},[222,384,385,283,388,283,391,283,394],{},[149,386,387],{},"\u002Faccount\u002Flogin",[149,389,390],{},"\u002Faccount\u002Fauthorize",[149,392,393],{},"\u002Faccount\u002Frefresh",[149,395,396],{},"POST \u002Faccount\u002Flogout",[222,398,399,400,283,403,406],{},"The login and logout, replace ",[149,401,402],{},"\u002F_auth\u002Fcustomer-account\u002Fcallback",[149,404,405],{},"\u002F_auth\u002Fcustomer-account\u002Flogout"," and the dev bridge",[207,408,409,414],{},[222,410,411],{},[149,412,413],{},"GET \u002Faccount\u002Fsession",[222,415,416,417,235,420],{},"The session for ",[149,418,419],{},"useCustomerAccountSession",[149,421,422],{},"\u002F_auth\u002Fcustomer-account\u002Fsession",[207,424,425,430],{},[222,426,427],{},[149,428,429],{},"POST \u002Faccount\u002Fcustomer\u002Fapi\u002F\u003Cversion>\u002Fgraphql",[222,431,229,432,235,436],{},[231,433,435],{"href":434},"\u002Fessentials\u002Fcustomer-account#the-customer-account-proxy","customer account proxy",[149,437,438],{},"\u002F_proxy\u002Fcustomer-account",[145,440,441,442,445,446,450,451,455],{},"If your CDN, firewall or monitoring rules use the old paths, update them.\nThe module also redirects ",[149,443,444],{},"?variant=\u003Cid>"," links to the selected options of the variant, and checks for a redirect when a page is not found during server-side rendering, see ",[231,447,449],{"href":448},"\u002Fessentials\u002Fstorefront#variant-links","variant links"," and ",[231,452,454],{"href":453},"\u002Fessentials\u002Fstorefront#redirects","redirects",".",[145,457,458,459,462,463,455],{},"If you only use the storefront client to send your own queries, as in version 1, set ",[149,460,461],{},"routes: false"," on it to leave out the storefront routes, Shopify's scripts and the redirects, see ",[231,464,466],{"href":465},"\u002Fessentials\u002Fstorefront#without-the-routes","without the routes",[145,468,469,470,473,474,476,477,480,481,484,485,488],{},"The routes are always served from the root of your domain.\nThe browser clients no longer add ",[149,471,472],{},"app.baseURL"," to the proxy paths, and the storefront client, the customer account client and analytics don't support an ",[149,475,472],{}," other than ",[149,478,479],{},"\u002F",".\nThe module shows a warning when Nuxt starts if you set one.\nOn statically generated sites, built with ",[149,482,483],{},"nuxt generate"," or a static preset such as ",[149,486,487],{},"github_pages",", the proxies are disabled, because there is no server for them.",[145,490,491,492,455],{},"In development, the URL of the admin explorer now contains a token that changes every time the dev server starts.\nOpen it from the link in the output of the dev server, see ",[231,493,494],{"href":126},"GraphQL explorer",[161,496,498],{"id":497},"configuration","Configuration",[145,500,501,502,505,506,450,509,512,513,516],{},"Options with a new format, such as ",[149,503,504],{},"proxy: { route }",", are invalid.\n",[149,507,508],{},"nuxt dev",[149,510,511],{},"nuxt prepare"," log the error and set up the module without that feature, and ",[149,514,515],{},"nuxt build"," fails.\nRemoved and renamed options are ignored, with a warning for each of them.",[518,519,521],"h3",{"id":520},"shop-and-market","Shop and market",[145,523,524,525,528,529,532],{},"The shop options moved from ",[149,526,527],{},"analytics"," to the top level, and the language and currency to the new ",[149,530,531],{},"i18n"," option, because the routes, the login and Shopify's scripts also use them without analytics:",[201,534,535,545],{},[204,536,537],{},[207,538,539,542],{},[210,540,541],{},"1.x",[210,543,544],{},"2.0",[217,546,547,564,576,595,607,619],{},[207,548,549,554],{},[222,550,551],{},[149,552,553],{},"analytics.shopId",[222,555,556,559,560,563],{},[149,557,558],{},"shopId",", only the number (e.g. ",[149,561,562],{},"12345",")",[207,565,566,571],{},[222,567,568],{},[149,569,570],{},"analytics.storefrontId",[222,572,573],{},[149,574,575],{},"storefrontId",[207,577,578,586],{},[222,579,580,283,583],{},[149,581,582],{},"analytics.language",[149,584,585],{},"analytics.currency",[222,587,588,591,592],{},[149,589,590],{},"i18n: { defaultLocale: { country, language, currency } }",", with the new and required ",[149,593,594],{},"country",[207,596,597,602],{},[222,598,599],{},[149,600,601],{},"NUXT_SHOPIFY_ANALYTICS_SHOP_ID",[222,603,604],{},[149,605,606],{},"NUXT_SHOPIFY_SHOP_ID",[207,608,609,614],{},[222,610,611],{},[149,612,613],{},"NUXT_SHOPIFY_ANALYTICS_STOREFRONT_ID",[222,615,616],{},[149,617,618],{},"NUXT_SHOPIFY_STOREFRONT_ID",[207,620,621,629],{},[222,622,623,283,626],{},[149,624,625],{},"NUXT_SHOPIFY_ANALYTICS_LANGUAGE",[149,627,628],{},"NUXT_SHOPIFY_ANALYTICS_CURRENCY",[222,630,631,283,634,450,637],{},[149,632,633],{},"NUXT_SHOPIFY_I18N_DEFAULT_LOCALE_COUNTRY",[149,635,636],{},"_LANGUAGE",[149,638,639],{},"_CURRENCY",[145,641,642,645,646,650,651,654,655,658,659,661,662,664],{},[149,643,644],{},"i18n.defaultLocale"," is the ",[231,647,649],{"href":648},"\u002Fessentials\u002Fstorefront#markets","locale"," of requests whose URL has no other locale.\nTo serve several markets, add their locales to ",[149,652,653],{},"i18n.routing",".\nThe module's routes, the login and Shopify's scripts use it.\nIt doesn't localize your own queries, so keep their ",[149,656,657],{},"@inContext"," variables.\nWithout ",[149,660,531],{},", the module fetches your shop's default market with the storefront client, so you need to set ",[149,663,644],{}," if you only use the customer account client or analytics.",[518,666,668],{"id":667},"api-versions","API versions",[145,670,671,672,674,675,678],{},"By default, the clients now use the API version of the installed ",[149,673,151],{},", such as ",[149,676,677],{},"2026-10"," for Hydrogen 2026.10, instead of the API version of the current date.\nThis way, the API version only changes when you upgrade Hydrogen, not when you rebuild your app.",[518,680,682],{"id":681},"documents","Documents",[145,684,685,686,688,689,692,693,696,697,700,701,704,705,707,708,710,711,455],{},"Patterns in ",[149,687,681],{}," that start with ",[149,690,691],{},"!"," now work the same for code generation, fragment injection, the regeneration during development and the generated ",[149,694,695],{},"graphql.config.mjs",".\nThey follow the rules of codegen, so ",[149,698,699],{},"!legacy"," only excludes the ",[149,702,703],{},"legacy"," folder in your project root.\nBefore, fragment injection excluded every ",[149,706,703],{}," folder.\nTo exclude every ",[149,709,703],{}," folder, use ",[149,712,713],{},"!**\u002Flegacy\u002F**",[145,715,716],{},"The module now finds the files of your patterns with Node's built-in glob, which reads some patterns differently than version 1:",[166,718,719,732,751,763],{},[169,720,721,722,724,725,728,729,455],{},"A ",[149,723,691],{}," pattern that matches a folder excludes everything in it, so ",[149,726,727],{},"!legacy\u002F*"," now also excludes ",[149,730,731],{},"legacy\u002Fold\u002F",[169,733,734,735,738,739,742,743,746,747,750],{},"Square brackets only match one character. ",[149,736,737],{},"pages\u002F[handle].vue"," matches ",[149,740,741],{},"pages\u002Fh.vue",", but no longer your ",[149,744,745],{},"[handle].vue"," page, so use ",[149,748,749],{},"pages\u002F*.vue"," instead.",[169,752,753,755,756,759,760,455],{},[149,754,691],{}," patterns no longer apply inside folders whose name starts with a dot, such as ",[149,757,758],{},".storybook\u002F",", unless they name the folder, as in ",[149,761,762],{},"!.storybook\u002F**\u002F*.admin.ts",[169,764,765],{},"Folders that are symlinks are no longer searched.",[145,767,768,769,772,773,283,776,283,779,450,782,785,786,789,790,455],{},"Route groups such as ",[149,770,771],{},"pages\u002F(account)\u002F"," no longer count as customer account or admin folders for fragment injection and in your editor, the same as in codegen.\n",[149,774,775],{},"node_modules",[149,777,778],{},"dist",[149,780,781],{},".nuxt",[149,783,784],{},".output"," folders and ",[149,787,788],{},".d.ts"," files are now always skipped, also when you set your own ",[149,791,681],{},[518,793,795],{"id":794},"storefront-client","Storefront client",[201,797,798,806],{},[204,799,800],{},[207,801,802,804],{},[210,803,541],{},[210,805,544],{},[217,807,808,825,838,850,882,895,908,921],{},[207,809,810,814],{},[222,811,812],{},[149,813,504],{},[222,815,816,315,819,822,823],{},[149,817,818],{},"proxy: true",[149,820,821],{},"false",", always at ",[149,824,226],{},[207,826,827,832],{},[222,828,829],{},[149,830,831],{},"cache.proxy",[222,833,834,837],{},[149,835,836],{},"cache.server",", for requests during server-side rendering",[207,839,840,845],{},[222,841,842],{},[149,843,844],{},"cache.client",[222,846,847],{},[149,848,849],{},"cache.browser",[207,851,852,865],{},[222,853,854,856,857,860,861,864],{},[149,855,844],{}," takes the options of ",[149,858,859],{},"lru-cache",", with ",[149,862,863],{},"ttl"," in milliseconds",[222,866,867,869,870,283,873,283,876,450,879,881],{},[149,868,849],{}," takes ",[149,871,872],{},"max",[149,874,875],{},"maxSize",[149,877,878],{},"maxEntrySize",[149,880,863],{},", now in seconds",[207,883,884,890],{},[222,885,886,887],{},"storage mount ",[149,888,889],{},"storefront-proxy",[222,891,892],{},[149,893,894],{},"storefront-cache",[207,896,897,903],{},[222,898,899,902],{},[149,900,901],{},"codegen.autoImport"," (every client)",[222,904,905],{},[149,906,907],{},"codegen.globalTypes",[207,909,910,916],{},[222,911,912,913],{},"preset ",[149,914,915],{},"staleMaxAge",[222,917,918],{},[149,919,920],{},"staleWhileRevalidate",[207,922,923,928],{},[222,924,912,925],{},[149,926,927],{},"swr",[222,929,930,931,933],{},"removed, ",[149,932,920],{}," sets how long a stale response is served",[145,935,229,936,939,940,943,944,947,948,950,951,954,955,957,958,315,960,963,964,966,967,969,970,973,974,977,978,981],{},[149,937,938],{},"cache"," option of a request changed the same way, from ",[149,941,942],{},"cache: { client, proxy }"," to ",[149,945,946],{},"cache: { browser, server }",", and the ",[149,949,863],{}," of ",[149,952,953],{},"cache: { browser: { ttl } }"," is now in seconds.\nThe ",[149,956,863],{}," of a ",[149,959,836],{},[149,961,962],{},"tokenStorage"," with the ",[149,965,859],{}," driver is also in seconds now.\n",[149,968,158],{}," reports the old keys, but not in ",[149,971,972],{},"useStorefrontData()"," if only one of them is renamed, such as ",[149,975,976],{},"cache: { client, server }",".\nAt runtime, a leftover ",[149,979,980],{},"client"," key is ignored without a warning, and the request isn't cached in the browser, so search your code for it:",[983,984,989],"pre",{"className":985,"code":986,"language":987,"meta":988,"style":988},"language-diff shiki shiki-themes material-theme-lighter material-theme material-theme-palenight"," useStorefrontData('products', query, {\n-  cache: { client: 'short', proxy: 'long' },\n+  cache: { browser: 'short', server: 'long' },\n })\n","diff","",[149,990,991,1000,1011,1021],{"__ignoreMap":988},[992,993,996],"span",{"class":994,"line":995},"line",1,[992,997,999],{"class":998},"sTEyZ"," useStorefrontData('products', query, {\n",[992,1001,1003,1007],{"class":994,"line":1002},2,[992,1004,1006],{"class":1005},"sMK4o","-",[992,1008,1010],{"class":1009},"swJcz","  cache: { client: 'short', proxy: 'long' },\n",[992,1012,1014,1017],{"class":994,"line":1013},3,[992,1015,1016],{"class":1005},"+",[992,1018,1020],{"class":1019},"sfazB","  cache: { browser: 'short', server: 'long' },\n",[992,1022,1024],{"class":994,"line":1023},4,[992,1025,1026],{"class":998}," })\n",[145,1028,1029,1030,1033],{},"With ",[149,1031,1032],{},"proxy: false",", only the browser client sends its requests directly to Shopify.\nThe module's routes are added either way.",[145,1035,1036,1038,1039,455],{},[149,1037,836],{}," no longer caches requests from the browser in the proxy.\nInstead, it caches the requests of your pages during server-side rendering.\nThese responses are shared by all visitors, so never use a server-side preset for a query with personalized data, see ",[231,1040,1041],{"href":69},"caching",[518,1043,1045],{"id":1044},"customer-account-client","Customer account client",[201,1047,1048,1056],{},[204,1049,1050],{},[207,1051,1052,1054],{},[210,1053,541],{},[210,1055,544],{},[217,1057,1058,1071,1081,1100,1112,1127,1145,1158,1172,1195],{},[207,1059,1060,1065],{},[222,1061,1062],{},[149,1063,1064],{},"clientSecret",[222,1066,1067,1068],{},"removed, the login only needs the ",[149,1069,1070],{},"clientId",[207,1072,1073,1078],{},[222,1074,1075],{},[149,1076,1077],{},"scope",[222,1079,1080],{},"removed",[207,1082,1083,1093],{},[222,1084,1085,283,1087,283,1090],{},[149,1086,195],{},[149,1088,1089],{},"dev.tunnelURL",[149,1091,1092],{},"dev.bridgeURL",[222,1094,1095,1096,1099],{},"removed, the routes are always at ",[149,1097,1098],{},"\u002Faccount\u002F*"," and there is no dev bridge",[207,1101,1102,1107],{},[222,1103,1104],{},[149,1105,1106],{},"apiURL",[222,1108,1109,1110],{},"removed, the API URL is built from the top-level ",[149,1111,558],{},[207,1113,1114,1118],{},[222,1115,1116],{},[149,1117,504],{},[222,1119,1120,315,1122,822,1124],{},[149,1121,818],{},[149,1123,821],{},[149,1125,1126],{},"\u002Faccount\u002Fcustomer\u002Fapi\u002F\u003Cversion>\u002Fgraphql",[207,1128,1129,1138],{},[222,1130,1131,1134,1135],{},[149,1132,1133],{},"afterLogout"," defaults to ",[149,1136,1137],{},"afterLogin",[222,1139,1140,1134,1142,1144],{},[149,1141,1133],{},[149,1143,479],{},", as in Hydrogen",[207,1146,1147,1153],{},[222,1148,1149,1152],{},[149,1150,1151],{},"tokenStorage: true"," without a limit",[222,1154,1155,1157],{},[149,1156,1151],{}," keeps up to 10,000 sessions in memory, on a single server",[207,1159,1160,1166],{},[222,1161,1162,1163],{},"session cookie ",[149,1164,1165],{},"shopify-customer-account",[222,1167,1168,1171],{},[149,1169,1170],{},"__Host-session",", as in Hydrogen's template",[207,1173,1174,1185],{},[222,1175,1176,283,1179,283,1182],{},[149,1177,1178],{},"session.cookie.domain",[149,1180,1181],{},".path",[149,1183,1184],{},".secure",[222,1186,1187,1188,1191,1192,1194],{},"removed, the session cookie is always ",[149,1189,1190],{},"Secure"," and set for ",[149,1193,479],{}," on your own domain, also in development",[207,1196,1197,1202],{},[222,1198,1199],{},[149,1200,1201],{},"session.cookie.sameSite: 'strict'",[222,1203,1204,1205,1208,1209],{},"not supported, because the login fails with it, use ",[149,1206,1207],{},"lax"," (the default) or ",[149,1210,1211],{},"none",[145,1213,1214,1215,1218,1219,1222,1223,1226],{},"The session password must be a random secret with at least 32 characters.\nThe placeholder from the old ",[149,1216,1217],{},".env.example"," is rejected, and in development, the module replaces it in your ",[149,1220,1221],{},".env"," with a generated password.\nA production build no longer includes the password from ",[149,1224,1225],{},"NUXT_SHOPIFY_CLIENTS_CUSTOMER_ACCOUNT_SESSION_PASSWORD",", so set the variable where your app runs, not only where it is built.\nOtherwise, for example with a prebuilt or Docker deployment, customers can't log in.",[518,1228,1230],{"id":1229},"analytics-options","Analytics options",[201,1232,1233,1241],{},[204,1234,1235],{},[207,1236,1237,1239],{},[210,1238,541],{},[210,1240,544],{},[217,1242,1243,1255,1271,1289],{},[207,1244,1245,1250],{},[222,1246,1247],{},[149,1248,1249],{},"consent.banner: true",[222,1251,1252],{},[149,1253,1254],{},"consent.mode: 'default-banner'",[207,1256,1257,1262],{},[222,1258,1259],{},[149,1260,1261],{},"consent.banner: { country, language }",[222,1263,1264,1266,1267],{},[149,1265,1254],{},", the banner uses the ",[231,1268,1270],{"href":1269},"\u002Fessentials\u002Fanalytics#buyer-market","locale of the request",[207,1272,1273,1279],{},[222,1274,1275,1278],{},[149,1276,1277],{},"consent.banner: false"," (default)",[222,1280,1281,1284,1285,1288],{},[149,1282,1283],{},"consent.mode: 'no-banner'"," (default), or ",[149,1286,1287],{},"'custom-banner'"," for your own banner or consent provider",[207,1290,1291,1302],{},[222,1292,1293,283,1296,283,1299],{},[149,1294,1295],{},"domain",[149,1297,1298],{},"consent.checkoutDomain",[149,1300,1301],{},"consent.storefrontAccessToken",[222,1303,1080],{},[145,1305,1306,1307,1309,1310,1312,1313,1316,1317,1319],{},"Without the storefront client, the module can't fetch your shop, so set the top-level ",[149,1308,558],{}," and an ",[149,1311,644],{}," with a ",[149,1314,1315],{},"currency",".\nThe module shows a warning when Nuxt starts if ",[149,1318,558],{}," or the default locale is missing.",[161,1321,1323],{"id":1322},"customer-accounts","Customer accounts",[166,1325,1326,1342,1373,1398,1418,1456,1486,1543,1683,1689,1698],{},[169,1327,1328,1331,1332,1335,1336,1339,1340,455],{},[172,1329,1330],{},"Update your Shopify settings."," In the Customer Account API settings, set the callback URI to ",[149,1333,1334],{},"https:\u002F\u002F\u003Cyour-domain>\u002Faccount\u002Fauthorize",", the JavaScript origin to ",[149,1337,1338],{},"https:\u002F\u002F\u003Cyour-domain>"," and the logout URI to ",[149,1341,1338],{},[169,1343,1344,1350,1351,1353,1354,315,1357,1360,1361,1364,1365,1368,1369,455],{},[172,1345,1346,1347,455],{},"No dev bridge and no ",[149,1348,1349],{},"localhost"," Shopify only accepts HTTPS URLs that aren't on ",[149,1352,1349],{},", so the login doesn't work on ",[149,1355,1356],{},"http:\u002F\u002Flocalhost",[149,1358,1359],{},"https:\u002F\u002Flocalhost",". Use the ",[149,1362,1363],{},"localHttps"," Vite plugin from ",[149,1366,1367],{},"@shopify\u002Fhydrogen\u002Fvite"," instead. You only need a tunnel to log in from another device, see ",[231,1370,1372],{"href":1371},"\u002Fessentials\u002Fcustomer-account#local-development","local development",[169,1374,1375,1382,1383,1386,1387,1390,1391,1393,1394,455],{},[172,1376,1377,1378,1381],{},"Logout is a ",[149,1379,1380],{},"POST"," request."," ",[149,1384,1385],{},"logout()"," submits a form to ",[149,1388,1389],{},"\u002Faccount\u002Flogout"," and only works in the browser. Replace logout links and logout pages with a button that calls ",[149,1392,1385],{},", or with a form, see ",[231,1395,1397],{"href":1396},"\u002Fessentials\u002Fcustomer-account#the-session-composable","the session composable",[169,1399,1400,1403,1404,1406,1407,1409,1410,1413,1414,1417],{},[172,1401,1402],{},"Login links"," go to ",[149,1405,387],{}," instead of ",[149,1408,402],{},". The country of Shopify's login page now comes from the locale of the request, so ",[149,1411,1412],{},"login({ countryCode })"," and the ",[149,1415,1416],{},"region_country"," parameter are removed.",[169,1419,1420,1425,1426,283,1429,283,1432,283,1435,450,1438,1441,1442,1445,1446,1448,1449,450,1452,1455],{},[172,1421,1422],{},[149,1423,1424],{},"useCustomerAccountSession()"," returns ",[149,1427,1428],{},"isLoggedIn",[149,1430,1431],{},"isReady",[149,1433,1434],{},"fetch",[149,1436,1437],{},"login",[149,1439,1440],{},"logout",". ",[149,1443,1444],{},"ready"," is renamed to ",[149,1447,1431],{},", and ",[149,1450,1451],{},"user",[149,1453,1454],{},"loggedInAt"," are removed. To load the customer, use a Customer Account API query.",[169,1457,1458,1382,1461,283,1464,1467,1468,1406,1471,1474,1475,1478,1479,1482,1483,455],{},[172,1459,1460],{},"Server helpers.",[149,1462,1463],{},"getCustomerAccountSession(event)",[149,1465,1466],{},"requireCustomerAccountSession(event)"," and the session route return ",[149,1469,1470],{},"{ isLoggedIn }",[149,1472,1473],{},"{ loggedIn, user, loggedInAt }",". Code that reads ",[149,1476,1477],{},"loggedIn"," gets ",[149,1480,1481],{},"undefined"," without an error, so rename it. To load the customer, use ",[149,1484,1485],{},"useCustomerAccount(event)",[169,1487,1488,1382,1491,283,1494,283,1497,450,1500,1503,1504,1441,1507,1510,1511,1513,1514,450,1516,1519,1520,1441,1522,1525,1526,283,1528,283,1531,283,1534,315,1537,943,1540,750],{},[172,1489,1490],{},"Hooks.",[149,1492,1493],{},"shopify:customer-account:auth:success",[149,1495,1496],{},":refresh",[149,1498,1499],{},":logout",[149,1501,1502],{},":error"," only receive ",[149,1505,1506],{},"{ event }",[149,1508,1509],{},"success"," runs after the session is stored, so it can no longer stop a login. ",[149,1512,1440],{}," runs after the session is cleared, and only when a logged in customer logs out. In ",[149,1515,1509],{},[149,1517,1518],{},"refresh",", you can load the customer with ",[149,1521,1485],{},[149,1523,1524],{},"customer-account:auth:authorize"," is removed, pass ",[149,1527,649],{},[149,1529,1530],{},"loginHint",[149,1532,1533],{},"loginHintMode",[149,1535,1536],{},"acrValues",[149,1538,1539],{},"returnTo",[149,1541,1542],{},"login()",[169,1544,1545,1548,1549,283,1551,315,1553,1556,1557,1560,1561,1564,1565,1567,1568],{},[172,1546,1547],{},"Cached pages are rendered without the customer."," Pages with a ",[149,1550,938],{},[149,1552,927],{},[149,1554,1555],{},"isr"," route rule never read the session, so they are rendered for a visitor who is not logged in, and ",[149,1558,1559],{},"useCustomerAccount()"," fails with a ",[149,1562,1563],{},"401"," error while rendering them. ",[149,1566,1424],{}," reads the session in the browser after hydration. Exclude your account pages from catch-all rules:",[983,1569,1574],{"className":1570,"code":1571,"filename":1572,"language":1573,"meta":988,"style":988},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","export default defineNuxtConfig({\n  routeRules: {\n    '\u002F**': { swr: 60 },\n    '\u002Faccount\u002F**': { cache: false, isr: false },\n  },\n})\n","nuxt.config.ts","ts",[149,1575,1576,1595,1606,1634,1668,1674],{"__ignoreMap":988},[992,1577,1578,1582,1585,1589,1592],{"class":994,"line":995},[992,1579,1581],{"class":1580},"s7zQu","export",[992,1583,1584],{"class":1580}," default",[992,1586,1588],{"class":1587},"s2Zo4"," defineNuxtConfig",[992,1590,1591],{"class":998},"(",[992,1593,1594],{"class":1005},"{\n",[992,1596,1597,1600,1603],{"class":994,"line":1002},[992,1598,1599],{"class":1009},"  routeRules",[992,1601,1602],{"class":1005},":",[992,1604,1605],{"class":1005}," {\n",[992,1607,1608,1611,1614,1617,1619,1622,1625,1627,1631],{"class":994,"line":1013},[992,1609,1610],{"class":1005},"    '",[992,1612,1613],{"class":1009},"\u002F**",[992,1615,1616],{"class":1005},"'",[992,1618,1602],{"class":1005},[992,1620,1621],{"class":1005}," {",[992,1623,1624],{"class":1009}," swr",[992,1626,1602],{"class":1005},[992,1628,1630],{"class":1629},"sbssI"," 60",[992,1632,1633],{"class":1005}," },\n",[992,1635,1636,1638,1641,1643,1645,1647,1650,1652,1656,1659,1662,1664,1666],{"class":994,"line":1023},[992,1637,1610],{"class":1005},[992,1639,1640],{"class":1009},"\u002Faccount\u002F**",[992,1642,1616],{"class":1005},[992,1644,1602],{"class":1005},[992,1646,1621],{"class":1005},[992,1648,1649],{"class":1009}," cache",[992,1651,1602],{"class":1005},[992,1653,1655],{"class":1654},"sfNiH"," false",[992,1657,1658],{"class":1005},",",[992,1660,1661],{"class":1009}," isr",[992,1663,1602],{"class":1005},[992,1665,1655],{"class":1654},[992,1667,1633],{"class":1005},[992,1669,1671],{"class":994,"line":1670},5,[992,1672,1673],{"class":1005},"  },\n",[992,1675,1677,1680],{"class":994,"line":1676},6,[992,1678,1679],{"class":1005},"}",[992,1681,1682],{"class":998},")\n",[169,1684,1685,1688],{},[172,1686,1687],{},"All customers are logged out once"," after the upgrade, because the session format and the cookie name changed.",[169,1690,1691,1694,1695,1697],{},[172,1692,1693],{},"The customer account proxy"," only accepts ",[149,1696,1380],{}," requests with a JSON body from your own domain.",[169,1699,1700,1382,1703,283,1706,283,1709,450,1712,1715,1716,1445,1719,1722,1723,1441,1725,1728],{},[172,1701,1702],{},"Types.",[149,1704,1705],{},"CustomerAccountUser",[149,1707,1708],{},"CustomerAccountTokenSet",[149,1710,1711],{},"CustomerAccountTokens",[149,1713,1714],{},"OpenIdConfiguration"," are removed. ",[149,1717,1718],{},"CustomerAccountSession",[149,1720,1721],{},"ShopifyCustomerAccountSession",", which is ",[149,1724,1470],{},[149,1726,1727],{},"CustomerAccountSessionData"," is no longer exported.",[161,1730,73],{"id":527},[145,1732,1733,1734,1737,1738,1741],{},"Analytics now uses the same scripts as Shopify's own storefronts: Shopify's analytics bus, the Customer Privacy API and Shopify's privacy banner.\n",[149,1735,1736],{},"useShopifyAnalytics()"," returns Shopify's analytics bus.\nOn the server and before Shopify's scripts have loaded, it returns ",[149,1739,1740],{},"null",", so call it in browser code:",[201,1743,1744,1752],{},[204,1745,1746],{},[207,1747,1748,1750],{},[210,1749,541],{},[210,1751,544],{},[217,1753,1754,1767,1784,1796,1808,1822,1839,1860,1874,1911,1922,1932,1947,1957],{},[207,1755,1756,1761],{},[222,1757,1758],{},[149,1759,1760],{},"publish(event, payload)",[222,1762,1763,1766],{},[149,1764,1765],{},"useShopifyAnalytics()?.publish(event, payload)",", only for Shopify's standard events",[207,1768,1769,1774],{},[222,1770,1771],{},[149,1772,1773],{},"subscribe(event, callback)",[222,1775,1776,1779,1780,1783],{},[149,1777,1778],{},"useShopifyAnalytics()?.addDestination({ name, setup })"," in the ",[149,1781,1782],{},"shopify:analytics:ready"," hook",[207,1785,1786,1791],{},[222,1787,1788],{},[149,1789,1790],{},"setTrackingConsent(consent)",[222,1792,1793],{},[149,1794,1795],{},"window.Shopify.customerPrivacy.setTrackingConsent(consent)",[207,1797,1798,1803],{},[222,1799,1800],{},[149,1801,1802],{},"canTrack()",[222,1804,1805],{},[149,1806,1807],{},"window.Shopify.customerPrivacy.analyticsProcessingAllowed()",[207,1809,1810,1815],{},[222,1811,1812],{},[149,1813,1814],{},"showPreferences()",[222,1816,1817,860,1820],{},[149,1818,1819],{},"window.privacyBanner.showPreferences()",[149,1821,1254],{},[207,1823,1824,1829],{},[222,1825,1826],{},[149,1827,1828],{},"setShopContext({ country, language })",[222,1830,1831,1832,1834,1835,1838],{},"the locales of the ",[149,1833,531],{}," option, or ",[149,1836,1837],{},"event.context.shopifyLocale"," in a Nitro plugin, and a full page load to switch locales",[207,1840,1841,1847],{},[222,1842,1843,1846],{},[149,1844,1845],{},"setCart(cart)",", automatic cart events",[222,1848,1849,1852,1853,1856,1857],{},[149,1850,1851],{},"useCartAnalytics()"," from ",[149,1854,1855],{},"@shopify\u002Fhydrogen\u002Fvue",", inside ",[149,1858,1859],{},"CartProvider",[207,1861,1862,1866],{},[222,1863,1864],{},[149,1865,251],{},[222,1867,1868,1852,1871],{},[149,1869,1870],{},"useCart()",[149,1872,1873],{},"createCartComponents()",[207,1875,1876,1892],{},[222,1877,1878,1881,1882,283,1884,283,1887,283,1890,563],{},[149,1879,1880],{},"shop"," (",[149,1883,558],{},[149,1885,1886],{},"hydrogenSubchannelId",[149,1888,1889],{},"acceptedLanguage",[149,1891,1315],{},[222,1893,1894,1881,1896,283,1898,1900,1901,1881,1903,283,1906,1908,1909,1783],{},[149,1895,1880],{},[149,1897,558],{},[149,1899,575],{},") and ",[149,1902,531],{},[149,1904,1905],{},"language",[149,1907,1315],{},") of the ",[149,1910,1782],{},[207,1912,1913,1918],{},[222,1914,1915],{},[149,1916,1917],{},"useNuxtApp().$shopify.analytics",[222,1919,1920],{},[149,1921,1736],{},[207,1923,1924,1929],{},[222,1925,1926,1783],{},[149,1927,1928],{},"analytics:publish",[222,1930,1931],{},"a destination, which only receives the events that the visitor's consent allows",[207,1933,1934,1939],{},[222,1935,1936],{},[149,1937,1938],{},"\u003CShopifyCartView :data=\"{ cart }\" \u002F>",[222,1940,1941,860,1944],{},[149,1942,1943],{},"\u003CShopifyCartView :cart=\"cartState\" \u002F>",[149,1945,1946],{},"useCart(state => state)",[207,1948,1949,1954],{},[222,1950,1951],{},[149,1952,1953],{},"\u003CShopifyCustomView \u002F>",[222,1955,1956],{},"removed, custom events are not supported",[207,1958,1959,1974],{},[222,1960,1961,1964,1965,283,1968,283,1971],{},[149,1962,1963],{},"\u003CShopifyPrivacyBanner>"," and its ",[149,1966,1967],{},"accept",[149,1969,1970],{},"decline",[149,1972,1973],{},"setConsent",[222,1975,1976,1977,450,1980,1983,1984],{},"your own banner with ",[149,1978,1979],{},"consent.mode: 'custom-banner'",[149,1981,1982],{},"setTrackingConsent()",", or Shopify's banner with ",[149,1985,1986],{},"'default-banner'",[145,1988,1989,1992,1993,1996,1997,2000,2001,1448,2004,283,2007,450,2010,2013,2014,2017,2018,1448,2021,2024,2025,455],{},[149,1990,1991],{},"ShopifyProductView"," takes Hydrogen's ",[149,1994,1995],{},"ProductViewPayload",", so ",[149,1998,1999],{},"price"," is the variant's ",[149,2002,2003],{},"MoneyV2",[149,2005,2006],{},"variantId",[149,2008,2009],{},"variantTitle",[149,2011,2012],{},"quantity"," are required.\n",[149,2015,2016],{},"ShopifyCollectionView"," needs ",[149,2019,2020],{},"collection.handle",[149,2022,2023],{},"ShopifySearchView"," only reports searches with a term.\nThe event payloads are Hydrogen's, so update your mappings for tools such as GA4, see ",[231,2026,527],{"href":74},[161,2028,2030],{"id":2029},"errors","Errors",[166,2032,2033,2052,2069],{},[169,2034,2035,2038,2039,2042,2043,1406,2046,2049,2050,455],{},[172,2036,2037],{},"Visitors no longer see Shopify's response."," A failed request throws ",[149,2040,2041],{},"[shopify] Request to Shopify failed"," with Shopify's status, and Shopify's errors are written to the server log. If Shopify sent no error status, for example for GraphQL errors with a successful status or a network failure, the status is ",[149,2044,2045],{},"502",[149,2047,2048],{},"500",". A failed admin token request is always a ",[149,2051,2045],{},[169,2053,2054,2057,2058,2060,2061,2064,2065,2068],{},[172,2055,2056],{},"A customer account request without a logged in customer"," throws a ",[149,2059,1563],{}," error with the message ",[149,2062,2063],{},"[shopify] No customer account session: the customer is not logged in",", without the ",[149,2066,2067],{},"Request failed:"," prefix.",[169,2070,2071,2080,2081,455],{},[172,2072,2073,2076,2077,455],{},[149,2074,2075],{},"data.graphQLErrors"," is now ",[149,2078,2079],{},"cause.graphQLErrors"," You can read it in your code, but it is never included in error pages, JSON error responses or the page payload, see ",[231,2082,2083],{"href":64},"error handling",[161,2085,2087],{"id":2086},"renamed","Renamed",[201,2089,2090,2098],{},[204,2091,2092],{},[207,2093,2094,2096],{},[210,2095,541],{},[210,2097,544],{},[217,2099,2100,2117,2141,2151,2164,2180,2189,2212,2228,2239,2251,2268,2281,2293,2305],{},[207,2101,2102,2108],{},[222,2103,2104,2105],{},"Hooks such as ",[149,2106,2107],{},"storefront:client:configure",[222,2109,2110,2113,2114],{},[149,2111,2112],{},"shopify:storefront:client:configure",", every hook starts with ",[149,2115,2116],{},"shopify:",[207,2118,2119,2130],{},[222,2120,2121,283,2124,283,2127],{},[149,2122,2123],{},"createStorefrontClient",[149,2125,2126],{},"createCustomerAccountClient",[149,2128,2129],{},"createAdminClient",[222,2131,2132,283,2135,283,2138],{},[149,2133,2134],{},"createStorefrontApiClient",[149,2136,2137],{},"createCustomerAccountApiClient",[149,2139,2140],{},"createAdminApiClient",[207,2142,2143,2148],{},[222,2144,2145],{},[149,2146,2147],{},"createShopifyClient",[222,2149,2150],{},"removed, use the factory of the client you need",[207,2152,2153,2158],{},[222,2154,2155],{},[149,2156,2157],{},"ShopifyAuthCallbacks",[222,2159,2160,2163],{},[149,2161,2162],{},"ShopifyAdminAuthCallbacks",", only for the admin client",[207,2165,2166,2173],{},[222,2167,2168,283,2170],{},[149,2169,1718],{},[149,2171,2172],{},"AdminTokenSet",[222,2174,2175,283,2177],{},[149,2176,1721],{},[149,2178,2179],{},"ShopifyAdminTokenSet",[207,2181,2182,2186],{},[222,2183,2184],{},[149,2185,1727],{},[222,2187,2188],{},"no longer exported",[207,2190,2191,2196],{},[222,2192,2193],{},[149,2194,2195],{},"ShopifyTemplateHookParams",[222,2197,2198,2201,2202,2205,2206,1406,2209],{},[149,2199,2200],{},"ShopifyCodegenHookParams",", with codegen's ",[149,2203,2204],{},"Types.ConfiguredOutput"," as ",[149,2207,2208],{},"config",[149,2210,2211],{},"Record\u003Cstring, unknown>",[207,2213,2214,2219],{},[222,2215,2216,2217],{},"Client factory option ",[149,2218,938],{},[222,2220,2221,2224,2225],{},[149,2222,2223],{},"browserCache",", next to the new ",[149,2226,2227],{},"serverCache",[207,2229,2230,2235],{},[222,2231,2232],{},[149,2233,2234],{},"useCustomerAccountSession().ready",[222,2236,2237],{},[149,2238,1431],{},[207,2240,2241,2246],{},[222,2242,2243],{},[149,2244,2245],{},"webhooks.hooks",[222,2247,2248],{},[149,2249,2250],{},"webhooks.subscriptions",[207,2252,2253,2263],{},[222,2254,2255,2256,2259,2260],{},"Module name ",[149,2257,2258],{},"nuxt-shopify",", for ",[149,2261,2262],{},"hasNuxtModule()",[222,2264,2265],{},[149,2266,2267],{},"@nuxtjs\u002Fshopify",[207,2269,2270,2276],{},[222,2271,2272,2273],{},"Nuxt plugin ",[149,2274,2275],{},"shopify:cache:storefront",[222,2277,2278],{},[149,2279,2280],{},"shopify:storefront:cache",[207,2282,2283,2288],{},[222,2284,2272,2285],{},[149,2286,2287],{},"shopify:customer-account-session",[222,2289,2290],{},[149,2291,2292],{},"shopify:customer-account:session",[207,2294,2295,2300],{},[222,2296,2272,2297],{},[149,2298,2299],{},"shopify:analytics",[222,2301,2302],{},[149,2303,2304],{},"shopify:scripts",[207,2306,2307,2317],{},[222,2308,2309,2310,2313,2314],{},"Route middleware ",[149,2311,2312],{},"customer-account",", in ",[149,2315,2316],{},"definePageMeta",[222,2318,2319],{},[149,2320,2321],{},"shopify:customer-account",[145,2323,2324,450,2327,2330,2331,2333,2334,2337],{},[149,2325,2326],{},"shopify:config",[149,2328,2329],{},"shopify:setup"," keep their names.\n",[149,2332,158],{}," reports hook names without the prefix in your Nuxt and Nitro plugins, but at runtime, hooks with an old name are never called.\nIf your own plugins use ",[149,2335,2336],{},"dependsOn",", update it to the new plugin names.",[161,2339,2341],{"id":2340},"outside-nuxt","Outside Nuxt",[166,2343,2344,2362,2378,2387,2390,2400],{},[169,2345,2346,2348,2349,2351,2352,2355,2356,1309,2358,2361],{},[149,2347,2137],{}," no longer needs a ",[149,2350,1070],{},". Instead, it needs your shop's ",[149,2353,2354],{},"name",", its numeric ",[149,2357,558],{},[149,2359,2360],{},"auth"," option that returns the customer's access token.",[169,2363,2364,2366,2367,283,2369,315,2371,2373,2374,2377],{},[149,2365,2147],{}," is removed. Use ",[149,2368,2134],{},[149,2370,2137],{},[149,2372,2140],{}," instead. ",[149,2375,2376],{},"ShopifyGenericClientOptions"," is removed.",[169,2379,2380,450,2383,2386],{},[149,2381,2382],{},"ShopifyClientDefinition",[149,2384,2385],{},"ShopifyClientSetupContext"," are no longer exported.",[169,2388,2389],{},"The admin client keeps its access token in memory, so it no longer requests a new token for every request.",[169,2391,2392,2395,2396,2399],{},[149,2393,2394],{},"npx @nuxtjs\u002Fshopify webhooks"," exits with code ",[149,2397,2398],{},"1"," on an unknown action.",[169,2401,229,2402,2405,2406,2409,2410,455],{},[149,2403,2404],{},"init"," command is removed. ",[149,2407,2408],{},"npx nuxi@latest init -t gh:nuxt-modules\u002Fshopify\u002Ftemplate .\u002Fmy-shop"," downloads the template from the main branch and installs its dependencies. To get the template of a release, add its tag, such as ",[149,2411,2412],{},"gh:nuxt-modules\u002Fshopify\u002Ftemplate#v2.0.0",[2414,2415,2416],"style",{},"html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}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 .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}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 .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}",{"title":988,"searchDepth":1002,"depth":1002,"links":2418},[2419,2420,2421,2429,2430,2431,2432,2433],{"id":163,"depth":1002,"text":164},{"id":195,"depth":1002,"text":196},{"id":497,"depth":1002,"text":498,"children":2422},[2423,2424,2425,2426,2427,2428],{"id":520,"depth":1013,"text":521},{"id":667,"depth":1013,"text":668},{"id":681,"depth":1013,"text":682},{"id":794,"depth":1013,"text":795},{"id":1044,"depth":1013,"text":1045},{"id":1229,"depth":1013,"text":1230},{"id":1322,"depth":1002,"text":1323},{"id":527,"depth":1002,"text":73},{"id":2029,"depth":1002,"text":2030},{"id":2086,"depth":1002,"text":2087},{"id":2340,"depth":1002,"text":2341},"Upgrade your app from Nuxt Shopify 1.x to 2.0","md",null,{},{"icon":138},{"title":135,"description":2434},"Qmz1nwbhm9kAn8gvq53_-qN1yWnewNVLIAxaQkLJHTs",[2442,2436],{"title":130,"path":131,"stem":132,"description":2443,"icon":133,"children":-1},"Using Webhooks with Shopify in Nuxt",1794833139775]