[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$KiqIp5Qu8t":3,"blog-\u002Fblog\u002Fserve-different-homepages-with-nuxt-named-views":52,"blogToc-\u002Fblog\u002Fserve-different-homepages-with-nuxt-named-views":1111,"blog-surrounding-\u002Fblog\u002Fserve-different-homepages-with-nuxt-named-views":1883,"blog-similar-posts-\u002Fblog\u002Fserve-different-homepages-with-nuxt-named-views":1892},{"id":4,"extension":5,"items":6,"meta":49,"stem":50,"__hash__":51},"menu\u002Fmenu.json","json",[7,12,16,20,24,28,32,36,41,45],{"i18nId":8,"to":9,"ariaLabel":10,"mainNavigation":11},"components.menu.home","\u002F","Home",true,{"i18nId":13,"to":14,"ariaLabel":15,"mainNavigation":11},"components.menu.about","\u002Fhire-me","About",{"i18nId":17,"to":18,"ariaLabel":19,"mainNavigation":11},"components.menu.testimonials","\u002Ftestimonials","Testimonials",{"i18nId":21,"to":22,"ariaLabel":23},"components.menu.contact","\u002Fcontact","Contact",{"i18nId":25,"to":26,"ariaLabel":27,"mainNavigation":11},"components.menu.blog","\u002Fblog","Blog",{"i18nId":29,"to":30,"ariaLabel":31,"mainNavigation":11},"components.menu.tips","\u002Fvue-tips","Vue Tips",{"i18nId":33,"to":34,"ariaLabel":35,"mainNavigation":11},"components.menu.projects","\u002Fprojects","Projects",{"i18nId":37,"to":38,"ariaLabel":39,"mainNavigation":40},"components.menu.stats","\u002Fstats","stats",false,{"i18nId":42,"to":43,"ariaLabel":44,"mainNavigation":40},"components.menu.businessCard","\u002Fbusiness-card","Business Card",{"i18nId":46,"to":47,"ariaLabel":48,"mainNavigation":40},"components.menu.publications","\u002Fpublications","Publications",{},"menu","njLT1QoRt2Dv8QWoVmH8xdTAiDywSj0bxBQdmoyWUE0",{"id":53,"title":54,"body":55,"categories":1088,"cover":166,"date":1092,"description":1093,"extension":1094,"lastUpdated":1095,"meta":1096,"navigation":11,"ogImage":1095,"path":1097,"readingTime":1098,"robots":1095,"schemaOrg":1095,"seo":1103,"sitemap":1104,"stem":1105,"tags":1106,"__hash__":1110},"blog\u002Fblog\u002Fserve-different-homepages-with-nuxt-named-views\u002Findex.md","Serve Different Homepages with Nuxt Named Views",{"type":56,"value":57,"toc":1078},"minimark",[58,66,76,87,92,102,116,130,133,137,140,143,151,155,158,169,172,285,288,417,420,424,439,888,907,920,926,944,948,957,964,970,974,977,994,1000,1027,1033,1037,1046,1055,1058,1062,1068,1074],[59,60,61,62,65],"p",{},"Some apps have business or SEO requirements that both the logged-out and logged-in homepage must be served at ",[63,64,9],"code",{},". For example, when migrating a legacy system to Nuxt, you may need to preserve its existing URLs and behavior. Visitors who are logged out should see an introduction to the product, while logged-in users should see their workspace at the same route.",[59,67,68,69,71,72,75],{},"This shared-route setup is only needed when those requirements prevent you from using separate URLs. If you can choose your routes freely, you can keep the public homepage at ",[63,70,9],{}," and put the workspace at ",[63,73,74],{},"\u002Fdashboard",".",[59,77,78,79,86],{},"In this article, I want to show you how to build this with ",[80,81,85],"a",{"href":82,"rel":83},"https:\u002F\u002Fnuxt.com\u002Fdocs\u002F4.x\u002Fdirectory-structure\u002Fapp\u002Fpages#named-views-v45",[84],"nofollow","named views in Nuxt 4.5",". We will use a demo authentication cookie to select which index page to render.",[88,89,91],"h2",{"id":90},"how-named-views-work","How Named Views Work",[59,93,94,95,98,99,75],{},"A route usually renders one page through ",[63,96,97],{},"\u003CNuxtPage \u002F>",". Named views let that route provide additional page components. Each component belongs to an outlet identified by its ",[63,100,101],{},"name",[59,103,104,105,108,109,112,113,75],{},"Nuxt 4.5 adds a file naming convention for these views: put the view name after an ",[63,106,107],{},"@"," in the page filename. For our homepage, we will use ",[63,110,111],{},"index.vue"," and ",[63,114,115],{},"index@authenticated.vue",[59,117,118,119,121,122,125,126,129],{},"Both files belong to ",[63,120,9],{},". The second file does not create an ",[63,123,124],{},"\u002Fauthenticated"," route. It provides the component for the ",[63,127,128],{},"authenticated"," outlet on the index route.",[59,131,132],{},"Named views can render several parts of a page at once, such as the main content and a sidebar. In our example, we will render one outlet at a time, depending on the cookie.",[88,134,136],{"id":135},"try-the-demo","Try the Demo",[59,138,139],{},"Use the login button below to switch between the public homepage and the workspace. The preview illustrates the two states without changing this article's URL or setting a cookie on this website.",[141,142],"demo-named-views",{},[59,144,145,146,150],{},"Choose ",[147,148,149],"strong",{},"Edit and run in StackBlitz"," to open the complete Nuxt app in a new tab. That version uses the real page files and demo cookie shown below, so you can edit the code and test a reload. In StackBlitz, open the app preview in its own tab to test the cookie across reloads.",[88,152,154],{"id":153},"create-the-two-index-pages","Create the Two Index Pages",[59,156,157],{},"Start with a Nuxt application running version 4.5 or later. We only need these three files:",[159,160,167],"pre",{"className":161,"code":163,"filename":164,"language":165,"meta":166},[162],"language-text","app\u002F\n├── app.vue\n└── pages\u002F\n    ├── index.vue\n    └── index@authenticated.vue\n","Directory Structure","text","",[63,168,163],{"__ignoreMap":166},[59,170,171],{},"Let's start with the page for visitors who are logged out:",[159,173,178],{"className":174,"code":175,"filename":176,"language":177,"meta":166,"style":166},"language-vue shiki shiki-themes github-light poimandres poimandres","\u003Ctemplate>\n  \u003Cmain>\n    \u003Ch1>Your projects, in one place\u003C\u002Fh1>\n    \u003Cp>Plan your next project and keep track of your work.\u003C\u002Fp>\n    \u003Cp>Use the demo login button above to open your workspace.\u003C\u002Fp>\n  \u003C\u002Fmain>\n\u003C\u002Ftemplate>\n","app\u002Fpages\u002Findex.vue","vue",[63,179,180,196,207,230,248,266,276],{"__ignoreMap":166},[181,182,185,189,193],"span",{"class":183,"line":184},"line",1,[181,186,188],{"class":187},"sMzB8","\u003C",[181,190,192],{"class":191},"s8PnL","template",[181,194,195],{"class":187},">\n",[181,197,199,202,205],{"class":183,"line":198},2,[181,200,201],{"class":187},"  \u003C",[181,203,204],{"class":191},"main",[181,206,195],{"class":187},[181,208,210,213,216,219,223,226,228],{"class":183,"line":209},3,[181,211,212],{"class":187},"    \u003C",[181,214,215],{"class":191},"h1",[181,217,218],{"class":187},">",[181,220,222],{"class":221},"syBNg","Your projects, in one place",[181,224,225],{"class":187},"\u003C\u002F",[181,227,215],{"class":191},[181,229,195],{"class":187},[181,231,233,235,237,239,242,244,246],{"class":183,"line":232},4,[181,234,212],{"class":187},[181,236,59],{"class":191},[181,238,218],{"class":187},[181,240,241],{"class":221},"Plan your next project and keep track of your work.",[181,243,225],{"class":187},[181,245,59],{"class":191},[181,247,195],{"class":187},[181,249,251,253,255,257,260,262,264],{"class":183,"line":250},5,[181,252,212],{"class":187},[181,254,59],{"class":191},[181,256,218],{"class":187},[181,258,259],{"class":221},"Use the demo login button above to open your workspace.",[181,261,225],{"class":187},[181,263,59],{"class":191},[181,265,195],{"class":187},[181,267,269,272,274],{"class":183,"line":268},6,[181,270,271],{"class":187},"  \u003C\u002F",[181,273,204],{"class":191},[181,275,195],{"class":187},[181,277,279,281,283],{"class":183,"line":278},7,[181,280,225],{"class":187},[181,282,192],{"class":191},[181,284,195],{"class":187},[59,286,287],{},"Next, add the named view for logged-in users:",[159,289,292],{"className":174,"code":290,"filename":291,"language":177,"meta":166,"style":166},"\u003Ctemplate>\n  \u003Cmain>\n    \u003Ch1>Your workspace\u003C\u002Fh1>\n    \u003Cp>You are viewing the logged-in homepage.\u003C\u002Fp>\n    \u003Cul>\n      \u003Cli>Website redesign\u003C\u002Fli>\n      \u003Cli>Customer portal\u003C\u002Fli>\n    \u003C\u002Ful>\n  \u003C\u002Fmain>\n\u003C\u002Ftemplate>\n","app\u002Fpages\u002Findex@authenticated.vue",[63,293,294,302,310,327,344,353,372,389,399,408],{"__ignoreMap":166},[181,295,296,298,300],{"class":183,"line":184},[181,297,188],{"class":187},[181,299,192],{"class":191},[181,301,195],{"class":187},[181,303,304,306,308],{"class":183,"line":198},[181,305,201],{"class":187},[181,307,204],{"class":191},[181,309,195],{"class":187},[181,311,312,314,316,318,321,323,325],{"class":183,"line":209},[181,313,212],{"class":187},[181,315,215],{"class":191},[181,317,218],{"class":187},[181,319,320],{"class":221},"Your workspace",[181,322,225],{"class":187},[181,324,215],{"class":191},[181,326,195],{"class":187},[181,328,329,331,333,335,338,340,342],{"class":183,"line":232},[181,330,212],{"class":187},[181,332,59],{"class":191},[181,334,218],{"class":187},[181,336,337],{"class":221},"You are viewing the logged-in homepage.",[181,339,225],{"class":187},[181,341,59],{"class":191},[181,343,195],{"class":187},[181,345,346,348,351],{"class":183,"line":250},[181,347,212],{"class":187},[181,349,350],{"class":191},"ul",[181,352,195],{"class":187},[181,354,355,358,361,363,366,368,370],{"class":183,"line":268},[181,356,357],{"class":187},"      \u003C",[181,359,360],{"class":191},"li",[181,362,218],{"class":187},[181,364,365],{"class":221},"Website redesign",[181,367,225],{"class":187},[181,369,360],{"class":191},[181,371,195],{"class":187},[181,373,374,376,378,380,383,385,387],{"class":183,"line":278},[181,375,357],{"class":187},[181,377,360],{"class":191},[181,379,218],{"class":187},[181,381,382],{"class":221},"Customer portal",[181,384,225],{"class":187},[181,386,360],{"class":191},[181,388,195],{"class":187},[181,390,392,395,397],{"class":183,"line":391},8,[181,393,394],{"class":187},"    \u003C\u002F",[181,396,350],{"class":191},[181,398,195],{"class":187},[181,400,402,404,406],{"class":183,"line":401},9,[181,403,271],{"class":187},[181,405,204],{"class":191},[181,407,195],{"class":187},[181,409,411,413,415],{"class":183,"line":410},10,[181,412,225],{"class":187},[181,414,192],{"class":191},[181,416,195],{"class":187},[59,418,419],{},"The project names are static demo content. We will keep the example focused on selecting a view rather than fetching account data.",[88,421,423],{"id":422},"select-a-view-with-a-cookie","Select a View with a Cookie",[59,425,426,427,434,435,438],{},"We can use Nuxt's ",[80,428,431],{"href":429,"rel":430},"https:\u002F\u002Fnuxt.com\u002Fdocs\u002F4.x\u002Fapi\u002Fcomposables\u002Fuse-cookie",[84],[63,432,433],{},"useCookie"," composable to read and update the demo cookie. Add the selection logic and a login\u002Flogout button to ",[63,436,437],{},"app.vue",":",[159,440,443],{"className":174,"code":441,"filename":442,"language":177,"meta":166,"style":166},"\u003Cscript setup lang=\"ts\">\nconst authCookie = useCookie\u003Cnull | string>('demo-auth', {\n  default: () => null,\n  path: '\u002F',\n  sameSite: 'lax',\n})\n\nconst isLoggedIn = computed(() => authCookie.value === 'logged-in')\n\nfunction toggleLogin () {\n  authCookie.value = isLoggedIn.value ? null : 'logged-in'\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv>\n    \u003Cheader>\n      \u003Cbutton\n        type=\"button\"\n        @click=\"toggleLogin\"\n      >\n        {{ isLoggedIn ? 'Log out of demo' : 'Log in to demo' }}\n      \u003C\u002Fbutton>\n    \u003C\u002Fheader>\n\n    \u003CNuxtPage\n      :key=\"isLoggedIn ? 'authenticated' : 'default'\"\n      :name=\"isLoggedIn ? 'authenticated' : 'default'\"\n    \u002F>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n","app\u002Fapp.vue",[63,444,445,475,518,539,556,572,577,582,620,624,635,668,674,683,688,697,707,717,725,741,756,762,768,778,787,792,800,835,864,870,879],{"__ignoreMap":166},[181,446,447,449,452,456,459,463,467,471,473],{"class":183,"line":184},[181,448,188],{"class":187},[181,450,451],{"class":191},"script",[181,453,455],{"class":454},"sppiw"," setup",[181,457,458],{"class":454}," lang",[181,460,462],{"class":461},"sygvE","=",[181,464,466],{"class":465},"srEIG","\"",[181,468,470],{"class":469},"skTdI","ts",[181,472,466],{"class":465},[181,474,195],{"class":187},[181,476,477,481,485,488,492,494,498,501,504,507,510,513,515],{"class":183,"line":198},[181,478,480],{"class":479},"slWGy","const",[181,482,484],{"class":483},"sGRIV"," authCookie",[181,486,487],{"class":479}," =",[181,489,491],{"class":490},"sHQ3f"," useCookie",[181,493,188],{"class":461},[181,495,497],{"class":496},"svhIC","null",[181,499,500],{"class":479}," |",[181,502,503],{"class":496}," string",[181,505,506],{"class":461},">(",[181,508,509],{"class":465},"'",[181,511,512],{"class":469},"demo-auth",[181,514,509],{"class":465},[181,516,517],{"class":461},", {\n",[181,519,520,524,526,529,532,536],{"class":183,"line":209},[181,521,523],{"class":522},"sBmmg","  default",[181,525,438],{"class":461},[181,527,528],{"class":461}," ()",[181,530,531],{"class":479}," =>",[181,533,535],{"class":534},"sQJmo"," null",[181,537,538],{"class":461},",\n",[181,540,541,545,547,550,552,554],{"class":183,"line":232},[181,542,544],{"class":543},"srga6","  path",[181,546,438],{"class":461},[181,548,549],{"class":465}," '",[181,551,9],{"class":469},[181,553,509],{"class":465},[181,555,538],{"class":461},[181,557,558,561,563,565,568,570],{"class":183,"line":250},[181,559,560],{"class":543},"  sameSite",[181,562,438],{"class":461},[181,564,549],{"class":465},[181,566,567],{"class":469},"lax",[181,569,509],{"class":465},[181,571,538],{"class":461},[181,573,574],{"class":183,"line":268},[181,575,576],{"class":461},"})\n",[181,578,579],{"class":183,"line":278},[181,580,581],{"emptyLinePlaceholder":11},"\n",[181,583,584,586,589,591,594,597,600,602,604,607,610,612,615,617],{"class":183,"line":391},[181,585,480],{"class":479},[181,587,588],{"class":483}," isLoggedIn",[181,590,487],{"class":479},[181,592,593],{"class":490}," computed",[181,595,596],{"class":461},"(() ",[181,598,599],{"class":479},"=>",[181,601,484],{"class":187},[181,603,75],{"class":461},[181,605,606],{"class":187},"value",[181,608,609],{"class":479}," ===",[181,611,549],{"class":465},[181,613,614],{"class":469},"logged-in",[181,616,509],{"class":465},[181,618,619],{"class":461},")\n",[181,621,622],{"class":183,"line":401},[181,623,581],{"emptyLinePlaceholder":11},[181,625,626,629,632],{"class":183,"line":410},[181,627,628],{"class":479},"function",[181,630,631],{"class":522}," toggleLogin",[181,633,634],{"class":461}," () {\n",[181,636,638,641,643,645,647,649,651,653,656,658,661,663,665],{"class":183,"line":637},11,[181,639,640],{"class":187},"  authCookie",[181,642,75],{"class":461},[181,644,606],{"class":187},[181,646,487],{"class":479},[181,648,588],{"class":187},[181,650,75],{"class":461},[181,652,606],{"class":187},[181,654,655],{"class":479}," ?",[181,657,535],{"class":534},[181,659,660],{"class":479}," :",[181,662,549],{"class":465},[181,664,614],{"class":469},[181,666,667],{"class":465},"'\n",[181,669,671],{"class":183,"line":670},12,[181,672,673],{"class":461},"}\n",[181,675,677,679,681],{"class":183,"line":676},13,[181,678,225],{"class":187},[181,680,451],{"class":191},[181,682,195],{"class":187},[181,684,686],{"class":183,"line":685},14,[181,687,581],{"emptyLinePlaceholder":11},[181,689,691,693,695],{"class":183,"line":690},15,[181,692,188],{"class":187},[181,694,192],{"class":191},[181,696,195],{"class":187},[181,698,700,702,705],{"class":183,"line":699},16,[181,701,201],{"class":187},[181,703,704],{"class":191},"div",[181,706,195],{"class":187},[181,708,710,712,715],{"class":183,"line":709},17,[181,711,212],{"class":187},[181,713,714],{"class":191},"header",[181,716,195],{"class":187},[181,718,720,722],{"class":183,"line":719},18,[181,721,357],{"class":187},[181,723,724],{"class":191},"button\n",[181,726,728,731,733,735,738],{"class":183,"line":727},19,[181,729,730],{"class":454},"        type",[181,732,462],{"class":461},[181,734,466],{"class":465},[181,736,737],{"class":469},"button",[181,739,740],{"class":465},"\"\n",[181,742,744,747,749,751,754],{"class":183,"line":743},20,[181,745,746],{"class":454},"        @click",[181,748,462],{"class":461},[181,750,466],{"class":465},[181,752,753],{"class":469},"toggleLogin",[181,755,740],{"class":465},[181,757,759],{"class":183,"line":758},21,[181,760,761],{"class":187},"      >\n",[181,763,765],{"class":183,"line":764},22,[181,766,767],{"class":221},"        {{ isLoggedIn ? 'Log out of demo' : 'Log in to demo' }}\n",[181,769,771,774,776],{"class":183,"line":770},23,[181,772,773],{"class":187},"      \u003C\u002F",[181,775,737],{"class":191},[181,777,195],{"class":187},[181,779,781,783,785],{"class":183,"line":780},24,[181,782,394],{"class":187},[181,784,714],{"class":191},[181,786,195],{"class":187},[181,788,790],{"class":183,"line":789},25,[181,791,581],{"emptyLinePlaceholder":11},[181,793,795,797],{"class":183,"line":794},26,[181,796,212],{"class":187},[181,798,799],{"class":191},"NuxtPage\n",[181,801,803,806,809,811,813,816,819,821,823,825,827,829,832],{"class":183,"line":802},27,[181,804,805],{"class":461},"      :",[181,807,808],{"class":454},"key",[181,810,462],{"class":461},[181,812,466],{"class":465},[181,814,815],{"class":187},"isLoggedIn ",[181,817,818],{"class":479},"?",[181,820,549],{"class":465},[181,822,128],{"class":469},[181,824,509],{"class":465},[181,826,660],{"class":479},[181,828,549],{"class":465},[181,830,831],{"class":469},"default",[181,833,834],{"class":465},"'\"\n",[181,836,838,840,842,844,846,848,850,852,854,856,858,860,862],{"class":183,"line":837},28,[181,839,805],{"class":461},[181,841,101],{"class":454},[181,843,462],{"class":461},[181,845,466],{"class":465},[181,847,815],{"class":187},[181,849,818],{"class":479},[181,851,549],{"class":465},[181,853,128],{"class":469},[181,855,509],{"class":465},[181,857,660],{"class":479},[181,859,549],{"class":465},[181,861,831],{"class":469},[181,863,834],{"class":465},[181,865,867],{"class":183,"line":866},29,[181,868,869],{"class":187},"    \u002F>\n",[181,871,873,875,877],{"class":183,"line":872},30,[181,874,271],{"class":187},[181,876,704],{"class":191},[181,878,195],{"class":187},[181,880,882,884,886],{"class":183,"line":881},31,[181,883,225],{"class":187},[181,885,192],{"class":191},[181,887,195],{"class":187},[59,889,890,893,894,896,897,899,900,902,903,899,905,75],{},[63,891,892],{},"isLoggedIn"," is true only when the cookie contains ",[63,895,614],{},". Without that value, the outlet uses the name ",[63,898,831],{}," and renders ",[63,901,111],{},". After clicking the button, it uses ",[63,904,128],{},[63,906,115],{},[59,908,909,910,912,913,916,917,919],{},"The ",[63,911,808],{}," changes with the selected view, giving each login state a fresh ",[63,914,915],{},"NuxtPage"," instance. The URL stays ",[63,918,9],{},"; we don't need a redirect to a separate dashboard route.",[59,921,922,923,925],{},"Setting the cookie to ",[63,924,497],{}," removes it. The same button therefore lets us try both states without adding login and logout endpoints.",[927,928,929],"note",{},[59,930,931,932,934,935,938,939,941,942,75],{},"Only the default route file, ",[63,933,111],{},", supplies ",[63,936,937],{},"definePageMeta"," for this route. Metadata inside ",[63,940,115],{}," has no effect on the route. Put shared route middleware and other route metadata in ",[63,943,111],{},[88,945,947],{"id":946},"render-the-correct-view-on-reload","Render the Correct View on Reload",[59,949,950,952,953,956],{},[63,951,433],{}," can read the incoming cookie during server rendering. If the browser sends ",[63,954,955],{},"demo-auth=logged-in",", the server can select the authenticated view for the initial response. Without it, the server selects the public view.",[59,958,959,960,963],{},"We don't need to wait for ",[63,961,962],{},"onMounted"," to read browser storage. That also means the choice is available before the first client render.",[59,965,966,967,969],{},"This example needs a running Nuxt server to personalize the initial HTML. A prerendered ",[63,968,9],{}," page cannot change its HTML for each visitor's cookie. Also, don't put a personalized homepage behind a shared HTML cache that serves the same response to every visitor.",[88,971,973],{"id":972},"try-both-states","Try Both States",[59,975,976],{},"Start your app with its development command, for example:",[159,978,982],{"className":979,"code":980,"language":981,"meta":166,"style":166},"language-bash shiki shiki-themes github-light poimandres poimandres","pnpm dev\n","bash",[63,983,984],{"__ignoreMap":166},[181,985,986,990],{"class":183,"line":184},[181,987,989],{"class":988},"sgaD9","pnpm",[181,991,993],{"class":992},"sMmyg"," dev\n",[59,995,996,997,999],{},"Open ",[63,998,9],{}," in a browser and try the following:",[1001,1002,1003,1009,1018,1021],"ol",{},[360,1004,1005,1006,1008],{},"With no ",[63,1007,512],{}," cookie, check that the public homepage appears.",[360,1010,1011,1012,1015,1016,75],{},"Click ",[147,1013,1014],{},"Log in to demo",". The workspace should replace it while the URL stays ",[63,1017,9],{},[360,1019,1020],{},"Reload the page. The workspace should still appear because the browser sends the cookie.",[360,1022,1011,1023,1026],{},[147,1024,1025],{},"Log out of demo",", then reload. You should see the public homepage again.",[59,1028,1029,1030,1032],{},"This small app only has the index route. If you add more routes, remember that an outlet with no matching named view stays empty. An app-wide ",[63,1031,128],{}," outlet would therefore hide pages that only provide a default view. You can move the selection into a parent page for the relevant route subtree, or explicitly choose the default outlet on other routes.",[88,1034,1036],{"id":1035},"replace-the-demo-cookie-before-production","Replace the Demo Cookie Before Production",[1038,1039,1040],"warning",{},[59,1041,1042,1043,1045],{},"The demo cookie is editable in the browser. Anyone can set it to ",[63,1044,614],{},". It demonstrates view selection and must not grant access to private data.",[59,1047,1048,1049,1052,1053,75],{},"For a real app, validate the session on the server and derive the logged-in state from that result. A session cookie can be ",[63,1050,1051],{},"HttpOnly","; client JavaScript cannot read it directly, so expose the validated user state through your authentication integration instead of reading the secret cookie in ",[63,1054,437],{},[59,1056,1057],{},"Your API endpoints must check the session and the user's permissions themselves. Selecting a different page component does not protect an endpoint, and private information should never be hardcoded into a page component shipped to the browser.",[88,1059,1061],{"id":1060},"conclusion","Conclusion",[59,1063,1064,1065,1067],{},"I like this approach when the public homepage and the logged-in workspace need their own page files but should share ",[63,1066,9],{},". The cookie selects an outlet, and Nuxt's file naming convention connects that outlet to a component.",[59,1069,1070,1071,1073],{},"For a small homepage, a conditional component inside ",[63,1072,111],{}," may be enough. Named views give us another option when we want to keep the two page implementations separate. The authentication checks still belong on the server.",[1075,1076,1077],"style",{},"html pre.shiki code .sMzB8, html code.shiki .sMzB8{--shiki-light:#24292E;--shiki-default:#E4F0FB;--shiki-dark:#E4F0FB}html pre.shiki code .s8PnL, html code.shiki .s8PnL{--shiki-light:#22863A;--shiki-default:#5DE4C7;--shiki-dark:#5DE4C7}html pre.shiki code .syBNg, html code.shiki .syBNg{--shiki-light:#24292E;--shiki-default:#5DE4C7;--shiki-dark:#5DE4C7}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 .sppiw, html code.shiki .sppiw{--shiki-light:#6F42C1;--shiki-light-font-style:inherit;--shiki-default:#91B4D5;--shiki-default-font-style:italic;--shiki-dark:#91B4D5;--shiki-dark-font-style:italic}html pre.shiki code .sygvE, html code.shiki .sygvE{--shiki-light:#24292E;--shiki-default:#A6ACCD;--shiki-dark:#A6ACCD}html pre.shiki code .srEIG, html code.shiki .srEIG{--shiki-light:#032F62;--shiki-default:#A6ACCD;--shiki-dark:#A6ACCD}html pre.shiki code .skTdI, html code.shiki .skTdI{--shiki-light:#032F62;--shiki-default:#5DE4C7;--shiki-dark:#5DE4C7}html pre.shiki code .slWGy, html code.shiki .slWGy{--shiki-light:#D73A49;--shiki-default:#91B4D5;--shiki-dark:#91B4D5}html pre.shiki code .sGRIV, html code.shiki .sGRIV{--shiki-light:#005CC5;--shiki-default:#E4F0FB;--shiki-dark:#E4F0FB}html pre.shiki code .sHQ3f, html code.shiki .sHQ3f{--shiki-light:#6F42C1;--shiki-default:#E4F0FBD0;--shiki-dark:#E4F0FBD0}html pre.shiki code .svhIC, html code.shiki .svhIC{--shiki-light:#005CC5;--shiki-default:#A6ACCDC0;--shiki-dark:#A6ACCDC0}html pre.shiki code .sBmmg, html code.shiki .sBmmg{--shiki-light:#6F42C1;--shiki-default:#ADD7FF;--shiki-dark:#ADD7FF}html pre.shiki code .sQJmo, html code.shiki .sQJmo{--shiki-light:#005CC5;--shiki-default:#D0679D;--shiki-dark:#D0679D}html pre.shiki code .srga6, html code.shiki .srga6{--shiki-light:#24292E;--shiki-default:#ADD7FF;--shiki-dark:#ADD7FF}html pre.shiki code .sgaD9, html code.shiki .sgaD9{--shiki-light:#6F42C1;--shiki-default:#91B4D5;--shiki-dark:#91B4D5}html pre.shiki code .sMmyg, html code.shiki .sMmyg{--shiki-light:#032F62;--shiki-default:#ADD7FF;--shiki-dark:#ADD7FF}",{"title":166,"searchDepth":198,"depth":198,"links":1079},[1080,1081,1082,1083,1084,1085,1086,1087],{"id":90,"depth":198,"text":91},{"id":135,"depth":198,"text":136},{"id":153,"depth":198,"text":154},{"id":422,"depth":198,"text":423},{"id":946,"depth":198,"text":947},{"id":972,"depth":198,"text":973},{"id":1035,"depth":198,"text":1036},{"id":1060,"depth":198,"text":1061},[1089,1090,1091],"development","vue-js","nuxt-js","2026-11-26","Use named views in Nuxt 4.5 to show a public homepage or a dashboard at the same URL, depending on a demo authentication cookie.","md",null,{},"\u002Fblog\u002Fserve-different-homepages-with-nuxt-named-views",{"text":1099,"minutes":1100,"time":1101,"words":1102},"6 min read",5.215,312900,1043,{"title":54,"description":1093},{"loc":1097,"lastmod":1092},"blog\u002Fserve-different-homepages-with-nuxt-named-views\u002Findex",[1107,1108,1109],"nuxt","routing","authentication","4MHxHVAv3tG7Oj8IvxX26EGMXfAsacK--U-8x4lzozg",{"id":1112,"title":54,"body":1113,"cover":166,"description":1093,"extension":1094,"meta":1876,"navigation":11,"path":1097,"robots":1095,"seo":1880,"sitemap":1881,"stem":1105,"__hash__":1882},"content\u002Fblog\u002Fserve-different-homepages-with-nuxt-named-views\u002Findex.md",{"type":56,"value":1114,"toc":1866},[1115,1119,1125,1130,1132,1138,1146,1154,1156,1158,1160,1162,1166,1168,1170,1175,1177,1261,1263,1379,1381,1383,1392,1744,1758,1766,1770,1782,1784,1790,1794,1798,1800,1802,1812,1816,1834,1838,1840,1846,1852,1854,1856,1860,1864],[59,1116,61,1117,65],{},[63,1118,9],{},[59,1120,68,1121,71,1123,75],{},[63,1122,9],{},[63,1124,74],{},[59,1126,78,1127,86],{},[80,1128,85],{"href":82,"rel":1129},[84],[88,1131,91],{"id":90},[59,1133,94,1134,98,1136,75],{},[63,1135,97],{},[63,1137,101],{},[59,1139,104,1140,108,1142,112,1144,75],{},[63,1141,107],{},[63,1143,111],{},[63,1145,115],{},[59,1147,118,1148,121,1150,125,1152,129],{},[63,1149,9],{},[63,1151,124],{},[63,1153,128],{},[59,1155,132],{},[88,1157,136],{"id":135},[59,1159,139],{},[141,1161],{},[59,1163,145,1164,150],{},[147,1165,149],{},[88,1167,154],{"id":153},[59,1169,157],{},[159,1171,1173],{"className":1172,"code":163,"filename":164,"language":165,"meta":166},[162],[63,1174,163],{"__ignoreMap":166},[59,1176,171],{},[159,1178,1179],{"className":174,"code":175,"filename":176,"language":177,"meta":166,"style":166},[63,1180,1181,1189,1197,1213,1229,1245,1253],{"__ignoreMap":166},[181,1182,1183,1185,1187],{"class":183,"line":184},[181,1184,188],{"class":187},[181,1186,192],{"class":191},[181,1188,195],{"class":187},[181,1190,1191,1193,1195],{"class":183,"line":198},[181,1192,201],{"class":187},[181,1194,204],{"class":191},[181,1196,195],{"class":187},[181,1198,1199,1201,1203,1205,1207,1209,1211],{"class":183,"line":209},[181,1200,212],{"class":187},[181,1202,215],{"class":191},[181,1204,218],{"class":187},[181,1206,222],{"class":221},[181,1208,225],{"class":187},[181,1210,215],{"class":191},[181,1212,195],{"class":187},[181,1214,1215,1217,1219,1221,1223,1225,1227],{"class":183,"line":232},[181,1216,212],{"class":187},[181,1218,59],{"class":191},[181,1220,218],{"class":187},[181,1222,241],{"class":221},[181,1224,225],{"class":187},[181,1226,59],{"class":191},[181,1228,195],{"class":187},[181,1230,1231,1233,1235,1237,1239,1241,1243],{"class":183,"line":250},[181,1232,212],{"class":187},[181,1234,59],{"class":191},[181,1236,218],{"class":187},[181,1238,259],{"class":221},[181,1240,225],{"class":187},[181,1242,59],{"class":191},[181,1244,195],{"class":187},[181,1246,1247,1249,1251],{"class":183,"line":268},[181,1248,271],{"class":187},[181,1250,204],{"class":191},[181,1252,195],{"class":187},[181,1254,1255,1257,1259],{"class":183,"line":278},[181,1256,225],{"class":187},[181,1258,192],{"class":191},[181,1260,195],{"class":187},[59,1262,287],{},[159,1264,1265],{"className":174,"code":290,"filename":291,"language":177,"meta":166,"style":166},[63,1266,1267,1275,1283,1299,1315,1323,1339,1355,1363,1371],{"__ignoreMap":166},[181,1268,1269,1271,1273],{"class":183,"line":184},[181,1270,188],{"class":187},[181,1272,192],{"class":191},[181,1274,195],{"class":187},[181,1276,1277,1279,1281],{"class":183,"line":198},[181,1278,201],{"class":187},[181,1280,204],{"class":191},[181,1282,195],{"class":187},[181,1284,1285,1287,1289,1291,1293,1295,1297],{"class":183,"line":209},[181,1286,212],{"class":187},[181,1288,215],{"class":191},[181,1290,218],{"class":187},[181,1292,320],{"class":221},[181,1294,225],{"class":187},[181,1296,215],{"class":191},[181,1298,195],{"class":187},[181,1300,1301,1303,1305,1307,1309,1311,1313],{"class":183,"line":232},[181,1302,212],{"class":187},[181,1304,59],{"class":191},[181,1306,218],{"class":187},[181,1308,337],{"class":221},[181,1310,225],{"class":187},[181,1312,59],{"class":191},[181,1314,195],{"class":187},[181,1316,1317,1319,1321],{"class":183,"line":250},[181,1318,212],{"class":187},[181,1320,350],{"class":191},[181,1322,195],{"class":187},[181,1324,1325,1327,1329,1331,1333,1335,1337],{"class":183,"line":268},[181,1326,357],{"class":187},[181,1328,360],{"class":191},[181,1330,218],{"class":187},[181,1332,365],{"class":221},[181,1334,225],{"class":187},[181,1336,360],{"class":191},[181,1338,195],{"class":187},[181,1340,1341,1343,1345,1347,1349,1351,1353],{"class":183,"line":278},[181,1342,357],{"class":187},[181,1344,360],{"class":191},[181,1346,218],{"class":187},[181,1348,382],{"class":221},[181,1350,225],{"class":187},[181,1352,360],{"class":191},[181,1354,195],{"class":187},[181,1356,1357,1359,1361],{"class":183,"line":391},[181,1358,394],{"class":187},[181,1360,350],{"class":191},[181,1362,195],{"class":187},[181,1364,1365,1367,1369],{"class":183,"line":401},[181,1366,271],{"class":187},[181,1368,204],{"class":191},[181,1370,195],{"class":187},[181,1372,1373,1375,1377],{"class":183,"line":410},[181,1374,225],{"class":187},[181,1376,192],{"class":191},[181,1378,195],{"class":187},[59,1380,419],{},[88,1382,423],{"id":422},[59,1384,426,1385,434,1390,438],{},[80,1386,1388],{"href":429,"rel":1387},[84],[63,1389,433],{},[63,1391,437],{},[159,1393,1394],{"className":174,"code":441,"filename":442,"language":177,"meta":166,"style":166},[63,1395,1396,1416,1444,1458,1472,1486,1490,1494,1524,1528,1536,1564,1568,1576,1580,1588,1596,1604,1610,1622,1634,1638,1642,1650,1658,1662,1668,1696,1724,1728,1736],{"__ignoreMap":166},[181,1397,1398,1400,1402,1404,1406,1408,1410,1412,1414],{"class":183,"line":184},[181,1399,188],{"class":187},[181,1401,451],{"class":191},[181,1403,455],{"class":454},[181,1405,458],{"class":454},[181,1407,462],{"class":461},[181,1409,466],{"class":465},[181,1411,470],{"class":469},[181,1413,466],{"class":465},[181,1415,195],{"class":187},[181,1417,1418,1420,1422,1424,1426,1428,1430,1432,1434,1436,1438,1440,1442],{"class":183,"line":198},[181,1419,480],{"class":479},[181,1421,484],{"class":483},[181,1423,487],{"class":479},[181,1425,491],{"class":490},[181,1427,188],{"class":461},[181,1429,497],{"class":496},[181,1431,500],{"class":479},[181,1433,503],{"class":496},[181,1435,506],{"class":461},[181,1437,509],{"class":465},[181,1439,512],{"class":469},[181,1441,509],{"class":465},[181,1443,517],{"class":461},[181,1445,1446,1448,1450,1452,1454,1456],{"class":183,"line":209},[181,1447,523],{"class":522},[181,1449,438],{"class":461},[181,1451,528],{"class":461},[181,1453,531],{"class":479},[181,1455,535],{"class":534},[181,1457,538],{"class":461},[181,1459,1460,1462,1464,1466,1468,1470],{"class":183,"line":232},[181,1461,544],{"class":543},[181,1463,438],{"class":461},[181,1465,549],{"class":465},[181,1467,9],{"class":469},[181,1469,509],{"class":465},[181,1471,538],{"class":461},[181,1473,1474,1476,1478,1480,1482,1484],{"class":183,"line":250},[181,1475,560],{"class":543},[181,1477,438],{"class":461},[181,1479,549],{"class":465},[181,1481,567],{"class":469},[181,1483,509],{"class":465},[181,1485,538],{"class":461},[181,1487,1488],{"class":183,"line":268},[181,1489,576],{"class":461},[181,1491,1492],{"class":183,"line":278},[181,1493,581],{"emptyLinePlaceholder":11},[181,1495,1496,1498,1500,1502,1504,1506,1508,1510,1512,1514,1516,1518,1520,1522],{"class":183,"line":391},[181,1497,480],{"class":479},[181,1499,588],{"class":483},[181,1501,487],{"class":479},[181,1503,593],{"class":490},[181,1505,596],{"class":461},[181,1507,599],{"class":479},[181,1509,484],{"class":187},[181,1511,75],{"class":461},[181,1513,606],{"class":187},[181,1515,609],{"class":479},[181,1517,549],{"class":465},[181,1519,614],{"class":469},[181,1521,509],{"class":465},[181,1523,619],{"class":461},[181,1525,1526],{"class":183,"line":401},[181,1527,581],{"emptyLinePlaceholder":11},[181,1529,1530,1532,1534],{"class":183,"line":410},[181,1531,628],{"class":479},[181,1533,631],{"class":522},[181,1535,634],{"class":461},[181,1537,1538,1540,1542,1544,1546,1548,1550,1552,1554,1556,1558,1560,1562],{"class":183,"line":637},[181,1539,640],{"class":187},[181,1541,75],{"class":461},[181,1543,606],{"class":187},[181,1545,487],{"class":479},[181,1547,588],{"class":187},[181,1549,75],{"class":461},[181,1551,606],{"class":187},[181,1553,655],{"class":479},[181,1555,535],{"class":534},[181,1557,660],{"class":479},[181,1559,549],{"class":465},[181,1561,614],{"class":469},[181,1563,667],{"class":465},[181,1565,1566],{"class":183,"line":670},[181,1567,673],{"class":461},[181,1569,1570,1572,1574],{"class":183,"line":676},[181,1571,225],{"class":187},[181,1573,451],{"class":191},[181,1575,195],{"class":187},[181,1577,1578],{"class":183,"line":685},[181,1579,581],{"emptyLinePlaceholder":11},[181,1581,1582,1584,1586],{"class":183,"line":690},[181,1583,188],{"class":187},[181,1585,192],{"class":191},[181,1587,195],{"class":187},[181,1589,1590,1592,1594],{"class":183,"line":699},[181,1591,201],{"class":187},[181,1593,704],{"class":191},[181,1595,195],{"class":187},[181,1597,1598,1600,1602],{"class":183,"line":709},[181,1599,212],{"class":187},[181,1601,714],{"class":191},[181,1603,195],{"class":187},[181,1605,1606,1608],{"class":183,"line":719},[181,1607,357],{"class":187},[181,1609,724],{"class":191},[181,1611,1612,1614,1616,1618,1620],{"class":183,"line":727},[181,1613,730],{"class":454},[181,1615,462],{"class":461},[181,1617,466],{"class":465},[181,1619,737],{"class":469},[181,1621,740],{"class":465},[181,1623,1624,1626,1628,1630,1632],{"class":183,"line":743},[181,1625,746],{"class":454},[181,1627,462],{"class":461},[181,1629,466],{"class":465},[181,1631,753],{"class":469},[181,1633,740],{"class":465},[181,1635,1636],{"class":183,"line":758},[181,1637,761],{"class":187},[181,1639,1640],{"class":183,"line":764},[181,1641,767],{"class":221},[181,1643,1644,1646,1648],{"class":183,"line":770},[181,1645,773],{"class":187},[181,1647,737],{"class":191},[181,1649,195],{"class":187},[181,1651,1652,1654,1656],{"class":183,"line":780},[181,1653,394],{"class":187},[181,1655,714],{"class":191},[181,1657,195],{"class":187},[181,1659,1660],{"class":183,"line":789},[181,1661,581],{"emptyLinePlaceholder":11},[181,1663,1664,1666],{"class":183,"line":794},[181,1665,212],{"class":187},[181,1667,799],{"class":191},[181,1669,1670,1672,1674,1676,1678,1680,1682,1684,1686,1688,1690,1692,1694],{"class":183,"line":802},[181,1671,805],{"class":461},[181,1673,808],{"class":454},[181,1675,462],{"class":461},[181,1677,466],{"class":465},[181,1679,815],{"class":187},[181,1681,818],{"class":479},[181,1683,549],{"class":465},[181,1685,128],{"class":469},[181,1687,509],{"class":465},[181,1689,660],{"class":479},[181,1691,549],{"class":465},[181,1693,831],{"class":469},[181,1695,834],{"class":465},[181,1697,1698,1700,1702,1704,1706,1708,1710,1712,1714,1716,1718,1720,1722],{"class":183,"line":837},[181,1699,805],{"class":461},[181,1701,101],{"class":454},[181,1703,462],{"class":461},[181,1705,466],{"class":465},[181,1707,815],{"class":187},[181,1709,818],{"class":479},[181,1711,549],{"class":465},[181,1713,128],{"class":469},[181,1715,509],{"class":465},[181,1717,660],{"class":479},[181,1719,549],{"class":465},[181,1721,831],{"class":469},[181,1723,834],{"class":465},[181,1725,1726],{"class":183,"line":866},[181,1727,869],{"class":187},[181,1729,1730,1732,1734],{"class":183,"line":872},[181,1731,271],{"class":187},[181,1733,704],{"class":191},[181,1735,195],{"class":187},[181,1737,1738,1740,1742],{"class":183,"line":881},[181,1739,225],{"class":187},[181,1741,192],{"class":191},[181,1743,195],{"class":187},[59,1745,1746,893,1748,896,1750,899,1752,902,1754,899,1756,75],{},[63,1747,892],{},[63,1749,614],{},[63,1751,831],{},[63,1753,111],{},[63,1755,128],{},[63,1757,115],{},[59,1759,909,1760,912,1762,916,1764,919],{},[63,1761,808],{},[63,1763,915],{},[63,1765,9],{},[59,1767,922,1768,925],{},[63,1769,497],{},[927,1771,1772],{},[59,1773,931,1774,934,1776,938,1778,941,1780,75],{},[63,1775,111],{},[63,1777,937],{},[63,1779,115],{},[63,1781,111],{},[88,1783,947],{"id":946},[59,1785,1786,952,1788,956],{},[63,1787,433],{},[63,1789,955],{},[59,1791,959,1792,963],{},[63,1793,962],{},[59,1795,966,1796,969],{},[63,1797,9],{},[88,1799,973],{"id":972},[59,1801,976],{},[159,1803,1804],{"className":979,"code":980,"language":981,"meta":166,"style":166},[63,1805,1806],{"__ignoreMap":166},[181,1807,1808,1810],{"class":183,"line":184},[181,1809,989],{"class":988},[181,1811,993],{"class":992},[59,1813,996,1814,999],{},[63,1815,9],{},[1001,1817,1818,1822,1828,1830],{},[360,1819,1005,1820,1008],{},[63,1821,512],{},[360,1823,1011,1824,1015,1826,75],{},[147,1825,1014],{},[63,1827,9],{},[360,1829,1020],{},[360,1831,1011,1832,1026],{},[147,1833,1025],{},[59,1835,1029,1836,1032],{},[63,1837,128],{},[88,1839,1036],{"id":1035},[1038,1841,1842],{},[59,1843,1042,1844,1045],{},[63,1845,614],{},[59,1847,1048,1848,1052,1850,75],{},[63,1849,1051],{},[63,1851,437],{},[59,1853,1057],{},[88,1855,1061],{"id":1060},[59,1857,1064,1858,1067],{},[63,1859,9],{},[59,1861,1070,1862,1073],{},[63,1863,111],{},[1075,1865,1077],{},{"title":166,"searchDepth":198,"depth":198,"links":1867},[1868,1869,1870,1871,1872,1873,1874,1875],{"id":90,"depth":198,"text":91},{"id":135,"depth":198,"text":136},{"id":153,"depth":198,"text":154},{"id":422,"depth":198,"text":423},{"id":946,"depth":198,"text":947},{"id":972,"depth":198,"text":973},{"id":1035,"depth":198,"text":1036},{"id":1060,"depth":198,"text":1061},{"categories":1877,"date":1092,"tags":1878,"readingTime":1879},[1089,1090,1091],[1107,1108,1109],{"text":1099,"minutes":1100,"time":1101,"words":1102},{"title":54,"description":1093},{"loc":1097,"lastmod":1092},"ZMJEqMG8iSyKHT-7PxtFGcflaeBanNIK1n-eEgOfx2I",[1884,1888],{"title":1885,"path":1886,"stem":1887,"children":-1},"How to Add an AI Chatbot to Your Nuxt Website with Aiduko","\u002Fblog\u002Fadd-ai-chatbot-to-nuxt-with-aiduko","blog\u002Fadd-ai-chatbot-to-nuxt-with-aiduko\u002Findex",{"title":1889,"path":1890,"stem":1891,"children":-1},"Why I Built Aiduko, an AI Chatbot for Your Content, and How It Works","\u002Fblog\u002Fwhy-i-built-aiduko-ai-chatbot","blog\u002Fwhy-i-built-aiduko-ai-chatbot\u002Findex",[1893,1898,1901,1906],{"cover":1894,"date":1895,"slug":1896,"title":1897,"to":1896},"blog\u002Fa-comprehensive-guide-to-data-fetching-in-nuxt-3\u002Fog.png","2023-06-20","\u002Fblog\u002Fa-comprehensive-guide-to-data-fetching-in-nuxt-3","A Comprehensive Guide to Data Fetching in Nuxt 3",{"cover":1899,"date":1900,"slug":1886,"title":1885,"to":1886},"blog\u002Fadd-ai-chatbot-to-nuxt-with-aiduko\u002Fog-2026-11-25.png","2026-11-30",{"cover":1902,"date":1903,"slug":1904,"title":1905,"to":1904},"blog\u002Fanalyze-memory-leaks-in-your-nuxt-app\u002Fog.png","2024-07-27","\u002Fblog\u002Fanalyze-memory-leaks-in-your-nuxt-app","Analyze Memory Leaks in Your Nuxt App",{"cover":1907,"date":1908,"slug":1909,"title":1910,"to":1909},"blog\u002Fbuilding-a-polite-newsletter-popup-with-nuxt-3\u002FBlog_Post__Polite_Popup_Nuxt_3_k8ch1w.jpg","2022-10-18","\u002Fblog\u002Fbuilding-a-polite-newsletter-popup-with-nuxt-3","Building a Polite Newsletter Popup With Nuxt 3"]