[{"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":1112,"blog-surrounding-\u002Fblog\u002Fserve-different-homepages-with-nuxt-named-views":1884,"blog-similar-posts-\u002Fblog\u002Fserve-different-homepages-with-nuxt-named-views":1893},{"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":1092,"date":1093,"description":1094,"extension":1095,"lastUpdated":1096,"meta":1097,"navigation":11,"ogImage":1096,"path":1098,"readingTime":1099,"robots":1096,"schemaOrg":1096,"seo":1104,"sitemap":1105,"stem":1106,"tags":1107,"__hash__":1111},"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","blog\u002Fserve-different-homepages-with-nuxt-named-views\u002Fog-2026-11-26.png","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":1100,"minutes":1101,"time":1102,"words":1103},"6 min read",5.215,312900,1043,{"title":54,"description":1094},{"loc":1098,"lastmod":1093},"blog\u002Fserve-different-homepages-with-nuxt-named-views\u002Findex",[1108,1109,1110],"nuxt","routing","authentication","dHqytZCM_x9cLqsrD8ZBsBPAr1UmVpz7zpuEUSCCA6I",{"id":1113,"title":54,"body":1114,"cover":1092,"description":1094,"extension":1095,"meta":1877,"navigation":11,"path":1098,"robots":1096,"seo":1881,"sitemap":1882,"stem":1106,"__hash__":1883},"content\u002Fblog\u002Fserve-different-homepages-with-nuxt-named-views\u002Findex.md",{"type":56,"value":1115,"toc":1867},[1116,1120,1126,1131,1133,1139,1147,1155,1157,1159,1161,1163,1167,1169,1171,1176,1178,1262,1264,1380,1382,1384,1393,1745,1759,1767,1771,1783,1785,1791,1795,1799,1801,1803,1813,1817,1835,1839,1841,1847,1853,1855,1857,1861,1865],[59,1117,61,1118,65],{},[63,1119,9],{},[59,1121,68,1122,71,1124,75],{},[63,1123,9],{},[63,1125,74],{},[59,1127,78,1128,86],{},[80,1129,85],{"href":82,"rel":1130},[84],[88,1132,91],{"id":90},[59,1134,94,1135,98,1137,75],{},[63,1136,97],{},[63,1138,101],{},[59,1140,104,1141,108,1143,112,1145,75],{},[63,1142,107],{},[63,1144,111],{},[63,1146,115],{},[59,1148,118,1149,121,1151,125,1153,129],{},[63,1150,9],{},[63,1152,124],{},[63,1154,128],{},[59,1156,132],{},[88,1158,136],{"id":135},[59,1160,139],{},[141,1162],{},[59,1164,145,1165,150],{},[147,1166,149],{},[88,1168,154],{"id":153},[59,1170,157],{},[159,1172,1174],{"className":1173,"code":163,"filename":164,"language":165,"meta":166},[162],[63,1175,163],{"__ignoreMap":166},[59,1177,171],{},[159,1179,1180],{"className":174,"code":175,"filename":176,"language":177,"meta":166,"style":166},[63,1181,1182,1190,1198,1214,1230,1246,1254],{"__ignoreMap":166},[181,1183,1184,1186,1188],{"class":183,"line":184},[181,1185,188],{"class":187},[181,1187,192],{"class":191},[181,1189,195],{"class":187},[181,1191,1192,1194,1196],{"class":183,"line":198},[181,1193,201],{"class":187},[181,1195,204],{"class":191},[181,1197,195],{"class":187},[181,1199,1200,1202,1204,1206,1208,1210,1212],{"class":183,"line":209},[181,1201,212],{"class":187},[181,1203,215],{"class":191},[181,1205,218],{"class":187},[181,1207,222],{"class":221},[181,1209,225],{"class":187},[181,1211,215],{"class":191},[181,1213,195],{"class":187},[181,1215,1216,1218,1220,1222,1224,1226,1228],{"class":183,"line":232},[181,1217,212],{"class":187},[181,1219,59],{"class":191},[181,1221,218],{"class":187},[181,1223,241],{"class":221},[181,1225,225],{"class":187},[181,1227,59],{"class":191},[181,1229,195],{"class":187},[181,1231,1232,1234,1236,1238,1240,1242,1244],{"class":183,"line":250},[181,1233,212],{"class":187},[181,1235,59],{"class":191},[181,1237,218],{"class":187},[181,1239,259],{"class":221},[181,1241,225],{"class":187},[181,1243,59],{"class":191},[181,1245,195],{"class":187},[181,1247,1248,1250,1252],{"class":183,"line":268},[181,1249,271],{"class":187},[181,1251,204],{"class":191},[181,1253,195],{"class":187},[181,1255,1256,1258,1260],{"class":183,"line":278},[181,1257,225],{"class":187},[181,1259,192],{"class":191},[181,1261,195],{"class":187},[59,1263,287],{},[159,1265,1266],{"className":174,"code":290,"filename":291,"language":177,"meta":166,"style":166},[63,1267,1268,1276,1284,1300,1316,1324,1340,1356,1364,1372],{"__ignoreMap":166},[181,1269,1270,1272,1274],{"class":183,"line":184},[181,1271,188],{"class":187},[181,1273,192],{"class":191},[181,1275,195],{"class":187},[181,1277,1278,1280,1282],{"class":183,"line":198},[181,1279,201],{"class":187},[181,1281,204],{"class":191},[181,1283,195],{"class":187},[181,1285,1286,1288,1290,1292,1294,1296,1298],{"class":183,"line":209},[181,1287,212],{"class":187},[181,1289,215],{"class":191},[181,1291,218],{"class":187},[181,1293,320],{"class":221},[181,1295,225],{"class":187},[181,1297,215],{"class":191},[181,1299,195],{"class":187},[181,1301,1302,1304,1306,1308,1310,1312,1314],{"class":183,"line":232},[181,1303,212],{"class":187},[181,1305,59],{"class":191},[181,1307,218],{"class":187},[181,1309,337],{"class":221},[181,1311,225],{"class":187},[181,1313,59],{"class":191},[181,1315,195],{"class":187},[181,1317,1318,1320,1322],{"class":183,"line":250},[181,1319,212],{"class":187},[181,1321,350],{"class":191},[181,1323,195],{"class":187},[181,1325,1326,1328,1330,1332,1334,1336,1338],{"class":183,"line":268},[181,1327,357],{"class":187},[181,1329,360],{"class":191},[181,1331,218],{"class":187},[181,1333,365],{"class":221},[181,1335,225],{"class":187},[181,1337,360],{"class":191},[181,1339,195],{"class":187},[181,1341,1342,1344,1346,1348,1350,1352,1354],{"class":183,"line":278},[181,1343,357],{"class":187},[181,1345,360],{"class":191},[181,1347,218],{"class":187},[181,1349,382],{"class":221},[181,1351,225],{"class":187},[181,1353,360],{"class":191},[181,1355,195],{"class":187},[181,1357,1358,1360,1362],{"class":183,"line":391},[181,1359,394],{"class":187},[181,1361,350],{"class":191},[181,1363,195],{"class":187},[181,1365,1366,1368,1370],{"class":183,"line":401},[181,1367,271],{"class":187},[181,1369,204],{"class":191},[181,1371,195],{"class":187},[181,1373,1374,1376,1378],{"class":183,"line":410},[181,1375,225],{"class":187},[181,1377,192],{"class":191},[181,1379,195],{"class":187},[59,1381,419],{},[88,1383,423],{"id":422},[59,1385,426,1386,434,1391,438],{},[80,1387,1389],{"href":429,"rel":1388},[84],[63,1390,433],{},[63,1392,437],{},[159,1394,1395],{"className":174,"code":441,"filename":442,"language":177,"meta":166,"style":166},[63,1396,1397,1417,1445,1459,1473,1487,1491,1495,1525,1529,1537,1565,1569,1577,1581,1589,1597,1605,1611,1623,1635,1639,1643,1651,1659,1663,1669,1697,1725,1729,1737],{"__ignoreMap":166},[181,1398,1399,1401,1403,1405,1407,1409,1411,1413,1415],{"class":183,"line":184},[181,1400,188],{"class":187},[181,1402,451],{"class":191},[181,1404,455],{"class":454},[181,1406,458],{"class":454},[181,1408,462],{"class":461},[181,1410,466],{"class":465},[181,1412,470],{"class":469},[181,1414,466],{"class":465},[181,1416,195],{"class":187},[181,1418,1419,1421,1423,1425,1427,1429,1431,1433,1435,1437,1439,1441,1443],{"class":183,"line":198},[181,1420,480],{"class":479},[181,1422,484],{"class":483},[181,1424,487],{"class":479},[181,1426,491],{"class":490},[181,1428,188],{"class":461},[181,1430,497],{"class":496},[181,1432,500],{"class":479},[181,1434,503],{"class":496},[181,1436,506],{"class":461},[181,1438,509],{"class":465},[181,1440,512],{"class":469},[181,1442,509],{"class":465},[181,1444,517],{"class":461},[181,1446,1447,1449,1451,1453,1455,1457],{"class":183,"line":209},[181,1448,523],{"class":522},[181,1450,438],{"class":461},[181,1452,528],{"class":461},[181,1454,531],{"class":479},[181,1456,535],{"class":534},[181,1458,538],{"class":461},[181,1460,1461,1463,1465,1467,1469,1471],{"class":183,"line":232},[181,1462,544],{"class":543},[181,1464,438],{"class":461},[181,1466,549],{"class":465},[181,1468,9],{"class":469},[181,1470,509],{"class":465},[181,1472,538],{"class":461},[181,1474,1475,1477,1479,1481,1483,1485],{"class":183,"line":250},[181,1476,560],{"class":543},[181,1478,438],{"class":461},[181,1480,549],{"class":465},[181,1482,567],{"class":469},[181,1484,509],{"class":465},[181,1486,538],{"class":461},[181,1488,1489],{"class":183,"line":268},[181,1490,576],{"class":461},[181,1492,1493],{"class":183,"line":278},[181,1494,581],{"emptyLinePlaceholder":11},[181,1496,1497,1499,1501,1503,1505,1507,1509,1511,1513,1515,1517,1519,1521,1523],{"class":183,"line":391},[181,1498,480],{"class":479},[181,1500,588],{"class":483},[181,1502,487],{"class":479},[181,1504,593],{"class":490},[181,1506,596],{"class":461},[181,1508,599],{"class":479},[181,1510,484],{"class":187},[181,1512,75],{"class":461},[181,1514,606],{"class":187},[181,1516,609],{"class":479},[181,1518,549],{"class":465},[181,1520,614],{"class":469},[181,1522,509],{"class":465},[181,1524,619],{"class":461},[181,1526,1527],{"class":183,"line":401},[181,1528,581],{"emptyLinePlaceholder":11},[181,1530,1531,1533,1535],{"class":183,"line":410},[181,1532,628],{"class":479},[181,1534,631],{"class":522},[181,1536,634],{"class":461},[181,1538,1539,1541,1543,1545,1547,1549,1551,1553,1555,1557,1559,1561,1563],{"class":183,"line":637},[181,1540,640],{"class":187},[181,1542,75],{"class":461},[181,1544,606],{"class":187},[181,1546,487],{"class":479},[181,1548,588],{"class":187},[181,1550,75],{"class":461},[181,1552,606],{"class":187},[181,1554,655],{"class":479},[181,1556,535],{"class":534},[181,1558,660],{"class":479},[181,1560,549],{"class":465},[181,1562,614],{"class":469},[181,1564,667],{"class":465},[181,1566,1567],{"class":183,"line":670},[181,1568,673],{"class":461},[181,1570,1571,1573,1575],{"class":183,"line":676},[181,1572,225],{"class":187},[181,1574,451],{"class":191},[181,1576,195],{"class":187},[181,1578,1579],{"class":183,"line":685},[181,1580,581],{"emptyLinePlaceholder":11},[181,1582,1583,1585,1587],{"class":183,"line":690},[181,1584,188],{"class":187},[181,1586,192],{"class":191},[181,1588,195],{"class":187},[181,1590,1591,1593,1595],{"class":183,"line":699},[181,1592,201],{"class":187},[181,1594,704],{"class":191},[181,1596,195],{"class":187},[181,1598,1599,1601,1603],{"class":183,"line":709},[181,1600,212],{"class":187},[181,1602,714],{"class":191},[181,1604,195],{"class":187},[181,1606,1607,1609],{"class":183,"line":719},[181,1608,357],{"class":187},[181,1610,724],{"class":191},[181,1612,1613,1615,1617,1619,1621],{"class":183,"line":727},[181,1614,730],{"class":454},[181,1616,462],{"class":461},[181,1618,466],{"class":465},[181,1620,737],{"class":469},[181,1622,740],{"class":465},[181,1624,1625,1627,1629,1631,1633],{"class":183,"line":743},[181,1626,746],{"class":454},[181,1628,462],{"class":461},[181,1630,466],{"class":465},[181,1632,753],{"class":469},[181,1634,740],{"class":465},[181,1636,1637],{"class":183,"line":758},[181,1638,761],{"class":187},[181,1640,1641],{"class":183,"line":764},[181,1642,767],{"class":221},[181,1644,1645,1647,1649],{"class":183,"line":770},[181,1646,773],{"class":187},[181,1648,737],{"class":191},[181,1650,195],{"class":187},[181,1652,1653,1655,1657],{"class":183,"line":780},[181,1654,394],{"class":187},[181,1656,714],{"class":191},[181,1658,195],{"class":187},[181,1660,1661],{"class":183,"line":789},[181,1662,581],{"emptyLinePlaceholder":11},[181,1664,1665,1667],{"class":183,"line":794},[181,1666,212],{"class":187},[181,1668,799],{"class":191},[181,1670,1671,1673,1675,1677,1679,1681,1683,1685,1687,1689,1691,1693,1695],{"class":183,"line":802},[181,1672,805],{"class":461},[181,1674,808],{"class":454},[181,1676,462],{"class":461},[181,1678,466],{"class":465},[181,1680,815],{"class":187},[181,1682,818],{"class":479},[181,1684,549],{"class":465},[181,1686,128],{"class":469},[181,1688,509],{"class":465},[181,1690,660],{"class":479},[181,1692,549],{"class":465},[181,1694,831],{"class":469},[181,1696,834],{"class":465},[181,1698,1699,1701,1703,1705,1707,1709,1711,1713,1715,1717,1719,1721,1723],{"class":183,"line":837},[181,1700,805],{"class":461},[181,1702,101],{"class":454},[181,1704,462],{"class":461},[181,1706,466],{"class":465},[181,1708,815],{"class":187},[181,1710,818],{"class":479},[181,1712,549],{"class":465},[181,1714,128],{"class":469},[181,1716,509],{"class":465},[181,1718,660],{"class":479},[181,1720,549],{"class":465},[181,1722,831],{"class":469},[181,1724,834],{"class":465},[181,1726,1727],{"class":183,"line":866},[181,1728,869],{"class":187},[181,1730,1731,1733,1735],{"class":183,"line":872},[181,1732,271],{"class":187},[181,1734,704],{"class":191},[181,1736,195],{"class":187},[181,1738,1739,1741,1743],{"class":183,"line":881},[181,1740,225],{"class":187},[181,1742,192],{"class":191},[181,1744,195],{"class":187},[59,1746,1747,893,1749,896,1751,899,1753,902,1755,899,1757,75],{},[63,1748,892],{},[63,1750,614],{},[63,1752,831],{},[63,1754,111],{},[63,1756,128],{},[63,1758,115],{},[59,1760,909,1761,912,1763,916,1765,919],{},[63,1762,808],{},[63,1764,915],{},[63,1766,9],{},[59,1768,922,1769,925],{},[63,1770,497],{},[927,1772,1773],{},[59,1774,931,1775,934,1777,938,1779,941,1781,75],{},[63,1776,111],{},[63,1778,937],{},[63,1780,115],{},[63,1782,111],{},[88,1784,947],{"id":946},[59,1786,1787,952,1789,956],{},[63,1788,433],{},[63,1790,955],{},[59,1792,959,1793,963],{},[63,1794,962],{},[59,1796,966,1797,969],{},[63,1798,9],{},[88,1800,973],{"id":972},[59,1802,976],{},[159,1804,1805],{"className":979,"code":980,"language":981,"meta":166,"style":166},[63,1806,1807],{"__ignoreMap":166},[181,1808,1809,1811],{"class":183,"line":184},[181,1810,989],{"class":988},[181,1812,993],{"class":992},[59,1814,996,1815,999],{},[63,1816,9],{},[1001,1818,1819,1823,1829,1831],{},[360,1820,1005,1821,1008],{},[63,1822,512],{},[360,1824,1011,1825,1015,1827,75],{},[147,1826,1014],{},[63,1828,9],{},[360,1830,1020],{},[360,1832,1011,1833,1026],{},[147,1834,1025],{},[59,1836,1029,1837,1032],{},[63,1838,128],{},[88,1840,1036],{"id":1035},[1038,1842,1843],{},[59,1844,1042,1845,1045],{},[63,1846,614],{},[59,1848,1048,1849,1052,1851,75],{},[63,1850,1051],{},[63,1852,437],{},[59,1854,1057],{},[88,1856,1061],{"id":1060},[59,1858,1064,1859,1067],{},[63,1860,9],{},[59,1862,1070,1863,1073],{},[63,1864,111],{},[1075,1866,1077],{},{"title":166,"searchDepth":198,"depth":198,"links":1868},[1869,1870,1871,1872,1873,1874,1875,1876],{"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":1878,"date":1093,"tags":1879,"readingTime":1880},[1089,1090,1091],[1108,1109,1110],{"text":1100,"minutes":1101,"time":1102,"words":1103},{"title":54,"description":1094},{"loc":1098,"lastmod":1093},"XOkoBkbIO3iCis5Tjv7dDlDc70-y80BlMYWCccqFIMQ",[1885,1889],{"title":1886,"path":1887,"stem":1888,"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":1890,"path":1891,"stem":1892,"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",[1894,1899,1902,1907],{"cover":1895,"date":1896,"slug":1897,"title":1898,"to":1897},"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":1900,"date":1901,"slug":1887,"title":1886,"to":1887},"blog\u002Fadd-ai-chatbot-to-nuxt-with-aiduko\u002Fog-2026-11-25.png","2026-11-30",{"cover":1903,"date":1904,"slug":1905,"title":1906,"to":1905},"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":1908,"date":1909,"slug":1910,"title":1911,"to":1910},"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"]