[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$KiqIp5Qu8t":3,"blog-\u002Fblog\u002Fuse-nitro-as-mock-server":52,"blogToc-\u002Fblog\u002Fuse-nitro-as-mock-server":686,"blog-surrounding-\u002Fblog\u002Fuse-nitro-as-mock-server":1112,"blog-similar-posts-\u002Fblog\u002Fuse-nitro-as-mock-server":1121},{"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":663,"cover":668,"date":669,"description":670,"extension":671,"lastUpdated":672,"meta":673,"navigation":11,"ogImage":672,"path":674,"readingTime":675,"robots":672,"schemaOrg":672,"seo":680,"sitemap":681,"stem":684,"tags":672,"__hash__":685},"blog\u002Fblog\u002Fuse-nitro-as-mock-server\u002Findex.md","Use Nitro as Mock Server",{"type":56,"value":57,"toc":657},"minimark",[58,75,78,83,86,119,126,142,149,153,170,173,301,304,308,316,327,330,337,348,351,360,369,468,471,616,619,626,629,633,636,645,653],[59,60,61,68,69,74],"p",{},[62,63,67],"a",{"href":64,"rel":65},"https:\u002F\u002Fnitro.unjs.io\u002F",[66],"nofollow","Nitro"," is a server toolkit that allows you to create web servers with everything you need and deploy them wherever you prefer. It's used in ",[62,70,73],{"href":71,"rel":72},"https:\u002F\u002Fnuxt.com\u002Fdocs\u002Fgetting-started\u002Fserver",[66],"Nuxt 3"," to power the server-side part of your Nuxt applications.",[59,76,77],{},"In this article, I will show how you can use Nitro as a mock server for your frontend E2E tests.",[79,80,82],"h2",{"id":81},"setup-nitro","Setup Nitro",[59,84,85],{},"First, you need to create a new Nitro project, you can use the official starter template:",[87,88,93],"pre",{"className":89,"code":90,"language":91,"meta":92,"style":92},"language-bash shiki shiki-themes github-light poimandres poimandres","npx giget@latest nitro mock-server --install\n","bash","",[94,95,96],"code",{"__ignoreMap":92},[97,98,101,105,109,112,115],"span",{"class":99,"line":100},"line",1,[97,102,104],{"class":103},"sgaD9","npx",[97,106,108],{"class":107},"sMmyg"," giget@latest",[97,110,111],{"class":107}," nitro",[97,113,114],{"class":107}," mock-server",[97,116,118],{"class":117},"snkik"," --install\n",[59,120,121,122,125],{},"Then, you can start the Nitro server in the newly created ",[94,123,124],{},"mock-server"," directory:",[87,127,129],{"className":89,"code":128,"language":91,"meta":92,"style":92},"npm run dev\n",[94,130,131],{"__ignoreMap":92},[97,132,133,136,139],{"class":99,"line":100},[97,134,135],{"class":103},"npm",[97,137,138],{"class":107}," run",[97,140,141],{"class":107}," dev\n",[59,143,144,145,148],{},"Your Nitro server is now running on ",[94,146,147],{},"http:\u002F\u002Flocalhost:3000",".",[79,150,152],{"id":151},"mock-api","Mock API",[59,154,155,156,161,162,165,166,169],{},"To mock API endpoints, you can use the full power of Nitro's ",[62,157,160],{"href":158,"rel":159},"https:\u002F\u002Fnitro.unjs.io\u002Fguide\u002Frouting",[66],"server routes",". Defining a route is as simple as creating a file inside the ",[94,163,164],{},"api\u002F"," or ",[94,167,168],{},"routes\u002F"," directory.",[59,171,172],{},"Here is an example of how you can create a simple mock API endpoint with a dynamic route parameter:",[87,174,178],{"className":175,"code":176,"language":177,"meta":92,"style":92},"language-ts shiki shiki-themes github-light poimandres poimandres","\u002F\u002F \u002Froutes\u002Fusers\u002F[id].get.ts\nexport default defineEventHandler(async (event) => {\n  const id = getRouterParam(event, 'id')\n\n  \u002F\u002F Do something with id\n\n  return `User profile!`\n})\n","ts",[94,179,180,186,224,262,268,274,279,295],{"__ignoreMap":92},[97,181,182],{"class":99,"line":100},[97,183,185],{"class":184},"s1MN7","\u002F\u002F \u002Froutes\u002Fusers\u002F[id].get.ts\n",[97,187,189,193,196,200,204,207,210,214,217,221],{"class":99,"line":188},2,[97,190,192],{"class":191},"sRZEA","export",[97,194,195],{"class":191}," default",[97,197,199],{"class":198},"sHQ3f"," defineEventHandler",[97,201,203],{"class":202},"sygvE","(",[97,205,206],{"class":191},"async",[97,208,209],{"class":202}," (",[97,211,213],{"class":212},"sadQ_","event",[97,215,216],{"class":202},")",[97,218,220],{"class":219},"slWGy"," =>",[97,222,223],{"class":202}," {\n",[97,225,227,230,234,237,240,242,245,248,252,256,259],{"class":99,"line":226},3,[97,228,229],{"class":219},"  const",[97,231,233],{"class":232},"sGRIV"," id",[97,235,236],{"class":219}," =",[97,238,239],{"class":198}," getRouterParam",[97,241,203],{"class":202},[97,243,213],{"class":244},"sMzB8",[97,246,247],{"class":202},",",[97,249,251],{"class":250},"srEIG"," '",[97,253,255],{"class":254},"skTdI","id",[97,257,258],{"class":250},"'",[97,260,261],{"class":202},")\n",[97,263,265],{"class":99,"line":264},4,[97,266,267],{"emptyLinePlaceholder":11},"\n",[97,269,271],{"class":99,"line":270},5,[97,272,273],{"class":184},"  \u002F\u002F Do something with id\n",[97,275,277],{"class":99,"line":276},6,[97,278,267],{"emptyLinePlaceholder":11},[97,280,282,286,289,292],{"class":99,"line":281},7,[97,283,285],{"class":284},"sdZ-l","  return",[97,287,288],{"class":250}," `",[97,290,291],{"class":254},"User profile!",[97,293,294],{"class":250},"`\n",[97,296,298],{"class":99,"line":297},8,[97,299,300],{"class":202},"})\n",[59,302,303],{},"Nitro's server routes are very powerful and flexible, you can use them to create any kind of API endpoint you need.",[79,305,307],{"id":306},"integrate-in-e2e-setup","Integrate in E2E setup",[59,309,310,311,148],{},"Now that you have a mock server running, you can use it in your frontend E2E tests. Let's do it exemplary with ",[62,312,315],{"href":313,"rel":314},"https:\u002F\u002Fplaywright.dev\u002F",[66],"Playwright",[317,318,319],"note",{},[59,320,321,326],{},[62,322,325],{"href":323,"rel":324},"https:\u002F\u002Fgithub.com\u002FMokkapps\u002Fnuxt-nitro-e2e-mock-server-demo",[66],"This repository"," contains the demo code which I describe below.",[59,328,329],{},"Let me first introduce the basic setup of the Nuxt 3 demo application that I use for this article:",[59,331,332,333,336],{},"The application uses one server API endpoint that fetches users from an API endpoint that is configured in the ",[94,334,335],{},".env"," file:",[87,338,342],{"className":339,"code":340,"filename":335,"language":341,"meta":92,"style":92},"language-yml shiki shiki-themes github-light poimandres poimandres","NUXT_EXTERNAL_API_URL=https:\u002F\u002Fjsonplaceholder.typicode.com\n","yml",[94,343,344],{"__ignoreMap":92},[97,345,346],{"class":99,"line":100},[97,347,340],{"class":107},[59,349,350],{},"In this example, we would like to mock this API endpoint to avoid making real API requests during our E2E tests. Therefore, we want to replace it with our Nitro mock server:",[87,352,354],{"className":339,"code":353,"filename":335,"language":341,"meta":92,"style":92},"NUXT_EXTERNAL_API_URL=http:\u002F\u002Flocalhost:5005\n",[94,355,356],{"__ignoreMap":92},[97,357,358],{"class":99,"line":100},[97,359,353],{"class":107},[59,361,362,363,368],{},"To use the Nitro server in your Playwright tests, you can start the Nitro server in the background before running the tests using the ",[62,364,367],{"href":365,"rel":366},"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fstart-server-and-test",[66],"start-server-and-test"," npm package:",[87,370,374],{"className":371,"code":372,"filename":373,"language":5,"meta":92,"style":92},"language-json shiki shiki-themes github-light poimandres poimandres","{\n  \"scripts\": {\n    \"start-mock-server\": \"npm run --prefix mock-server start\",\n    \"dev:e2e\": \"dotenv -e .\u002F.env.e2e -- playwright test --ui\",\n    \"test:e2e:ui\": \"start-server-and-test start-mock-server 5005 dev:e2e\"\n  },\n}\n","package.json",[94,375,376,381,396,419,439,458,463],{"__ignoreMap":92},[97,377,378],{"class":99,"line":100},[97,379,380],{"class":202},"{\n",[97,382,383,387,390,393],{"class":99,"line":188},[97,384,386],{"class":385},"saHH4","  \"",[97,388,389],{"class":232},"scripts",[97,391,392],{"class":385},"\"",[97,394,395],{"class":202},": {\n",[97,397,398,401,404,406,409,411,414,416],{"class":99,"line":226},[97,399,400],{"class":385},"    \"",[97,402,403],{"class":117},"start-mock-server",[97,405,392],{"class":385},[97,407,408],{"class":202},": ",[97,410,392],{"class":250},[97,412,413],{"class":254},"npm run --prefix mock-server start",[97,415,392],{"class":250},[97,417,418],{"class":202},",\n",[97,420,421,423,426,428,430,432,435,437],{"class":99,"line":264},[97,422,400],{"class":385},[97,424,425],{"class":117},"dev:e2e",[97,427,392],{"class":385},[97,429,408],{"class":202},[97,431,392],{"class":250},[97,433,434],{"class":254},"dotenv -e .\u002F.env.e2e -- playwright test --ui",[97,436,392],{"class":250},[97,438,418],{"class":202},[97,440,441,443,446,448,450,452,455],{"class":99,"line":270},[97,442,400],{"class":385},[97,444,445],{"class":117},"test:e2e:ui",[97,447,392],{"class":385},[97,449,408],{"class":202},[97,451,392],{"class":250},[97,453,454],{"class":254},"start-server-and-test start-mock-server 5005 dev:e2e",[97,456,457],{"class":250},"\"\n",[97,459,460],{"class":99,"line":276},[97,461,462],{"class":202},"  },\n",[97,464,465],{"class":99,"line":281},[97,466,467],{"class":202},"}\n",[59,469,470],{},"The Playwright configuration file starts the web server of your frontend application before running the tests:",[87,472,475],{"className":175,"code":473,"filename":474,"language":177,"meta":92,"style":92},"import { defineConfig, devices } from '@playwright\u002Ftest'\n\nexport default defineConfig({\n  \u002F\u002F ....\n\n  \u002F* Run your local dev server before starting the tests *\u002F\n  webServer: {\n    command: 'pnpm run dev',\n    reuseExistingServer: !process.env.CI,\n    url: 'http:\u002F\u002Flocalhost:3000',\n  },\n})\n","playwright.config.ts",[94,476,477,509,513,524,529,533,538,548,564,590,606,611],{"__ignoreMap":92},[97,478,479,482,485,489,491,494,497,501,503,506],{"class":99,"line":100},[97,480,481],{"class":191},"import",[97,483,484],{"class":202}," {",[97,486,488],{"class":487},"srga6"," defineConfig",[97,490,247],{"class":202},[97,492,493],{"class":487}," devices",[97,495,496],{"class":202}," }",[97,498,500],{"class":499},"sOygg"," from",[97,502,251],{"class":250},[97,504,505],{"class":254},"@playwright\u002Ftest",[97,507,508],{"class":250},"'\n",[97,510,511],{"class":99,"line":188},[97,512,267],{"emptyLinePlaceholder":11},[97,514,515,517,519,521],{"class":99,"line":226},[97,516,192],{"class":191},[97,518,195],{"class":191},[97,520,488],{"class":198},[97,522,523],{"class":202},"({\n",[97,525,526],{"class":99,"line":264},[97,527,528],{"class":184},"  \u002F\u002F ....\n",[97,530,531],{"class":99,"line":270},[97,532,267],{"emptyLinePlaceholder":11},[97,534,535],{"class":99,"line":276},[97,536,537],{"class":184},"  \u002F* Run your local dev server before starting the tests *\u002F\n",[97,539,540,543,546],{"class":99,"line":281},[97,541,542],{"class":487},"  webServer",[97,544,545],{"class":202},":",[97,547,223],{"class":202},[97,549,550,553,555,557,560,562],{"class":99,"line":297},[97,551,552],{"class":487},"    command",[97,554,545],{"class":202},[97,556,251],{"class":250},[97,558,559],{"class":254},"pnpm run dev",[97,561,258],{"class":250},[97,563,418],{"class":202},[97,565,567,570,572,575,578,580,583,585,588],{"class":99,"line":566},9,[97,568,569],{"class":487},"    reuseExistingServer",[97,571,545],{"class":202},[97,573,574],{"class":219}," !",[97,576,577],{"class":244},"process",[97,579,148],{"class":202},[97,581,582],{"class":244},"env",[97,584,148],{"class":202},[97,586,587],{"class":232},"CI",[97,589,418],{"class":202},[97,591,593,596,598,600,602,604],{"class":99,"line":592},10,[97,594,595],{"class":487},"    url",[97,597,545],{"class":202},[97,599,251],{"class":250},[97,601,147],{"class":254},[97,603,258],{"class":250},[97,605,418],{"class":202},[97,607,609],{"class":99,"line":608},11,[97,610,462],{"class":202},[97,612,614],{"class":99,"line":613},12,[97,615,300],{"class":202},[59,617,618],{},"That's it! Now you can run your E2E tests with the Nitro mock server running in the background:",[59,620,621],{},[622,623],"img",{"alt":624,"src":625},"Playwright Run Result","blog\u002Fuse-nitro-as-mock-server\u002Fplaywright-run.png",[59,627,628],{},"As you can see the Playwright tests are passing and the Nitro server is used as a mock server for the external API requests. You can verify this because the original API endpoint returns 10 results and our mock server returns 2 results.",[79,630,632],{"id":631},"conclusion","Conclusion",[59,634,635],{},"In this article, I showed you how you can use Nitro as a mock server for your frontend E2E tests. This can be very useful to avoid making real API requests during your tests and to speed up your development process. If you are already using Nuxt 3 as your frontend framework, you can easily integrate Nitro as a mock server in your setup and benefit from its powerful server routes.",[59,637,638,639,644],{},"If you liked this article, follow me on ",[62,640,643],{"href":641,"rel":642},"https:\u002F\u002Fx.com\u002Fmokkapps",[66],"X"," to get notified about my new blog posts and more content.",[59,646,647,648,545],{},"Alternatively (or additionally), you can ",[62,649,652],{"href":650,"rel":651},"https:\u002F\u002Fweekly-vue.news",[66],"subscribe to my weekly Vue & Nuxt newsletter",[654,655,656],"style",{},"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}html pre.shiki code .snkik, html code.shiki .snkik{--shiki-light:#005CC5;--shiki-default:#ADD7FF;--shiki-dark:#ADD7FF}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 .s1MN7, html code.shiki .s1MN7{--shiki-light:#6A737D;--shiki-light-font-style:inherit;--shiki-default:#767C9DB0;--shiki-default-font-style:italic;--shiki-dark:#767C9DB0;--shiki-dark-font-style:italic}html pre.shiki code .sRZEA, html code.shiki .sRZEA{--shiki-light:#D73A49;--shiki-default:#5DE4C7;--shiki-dark:#5DE4C7}html pre.shiki code .sHQ3f, html code.shiki .sHQ3f{--shiki-light:#6F42C1;--shiki-default:#E4F0FBD0;--shiki-dark:#E4F0FBD0}html pre.shiki code .sygvE, html code.shiki .sygvE{--shiki-light:#24292E;--shiki-default:#A6ACCD;--shiki-dark:#A6ACCD}html pre.shiki code .sadQ_, html code.shiki .sadQ_{--shiki-light:#E36209;--shiki-default:#E4F0FB;--shiki-dark:#E4F0FB}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 .sMzB8, html code.shiki .sMzB8{--shiki-light:#24292E;--shiki-default:#E4F0FB;--shiki-dark:#E4F0FB}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 .sdZ-l, html code.shiki .sdZ-l{--shiki-light:#D73A49;--shiki-default:#5DE4C7C0;--shiki-dark:#5DE4C7C0}html pre.shiki code .saHH4, html code.shiki .saHH4{--shiki-light:#005CC5;--shiki-default:#A6ACCD;--shiki-dark:#A6ACCD}html pre.shiki code .srga6, html code.shiki .srga6{--shiki-light:#24292E;--shiki-default:#ADD7FF;--shiki-dark:#ADD7FF}html pre.shiki code .sOygg, html code.shiki .sOygg{--shiki-light:#D73A49;--shiki-default:#A6ACCD;--shiki-dark:#A6ACCD}",{"title":92,"searchDepth":188,"depth":188,"links":658},[659,660,661,662],{"id":81,"depth":188,"text":82},{"id":151,"depth":188,"text":152},{"id":306,"depth":188,"text":307},{"id":631,"depth":188,"text":632},[664,665,666,667],"development","tools","nuxt-js","testing","blog\u002Fuse-nitro-as-mock-server\u002Fog-v2.png","2024-04-01","Nitro is a sever toolkit that allows you to create web servers with everything you need and deploy them wherever you prefer. It is used in Nuxt 3 to power the server-side part of your Nuxt applications. In this article, I will show you can use Nitro as a mock server for your frontend development.","md",null,{},"\u002Fblog\u002Fuse-nitro-as-mock-server",{"text":676,"minutes":677,"time":678,"words":679},"3 min read",2.71,162600,542,{"title":54,"description":670},{"loc":674,"images":682,"lastmod":669},[683],{"loc":625},"blog\u002Fuse-nitro-as-mock-server\u002Findex","cduF8IEjmxARCJhsCRY2BAYTnJ55rSldneyP2vJrQ0U",{"id":687,"title":54,"body":688,"cover":668,"description":670,"extension":671,"meta":1104,"navigation":11,"path":674,"robots":672,"seo":1107,"sitemap":1108,"stem":684,"__hash__":1111},"content\u002Fblog\u002Fuse-nitro-as-mock-server\u002Findex.md",{"type":56,"value":689,"toc":1098},[690,698,700,702,704,720,724,736,740,742,751,753,833,835,837,842,849,851,855,863,865,873,878,956,958,1074,1076,1080,1082,1084,1086,1091,1096],[59,691,692,68,695,74],{},[62,693,67],{"href":64,"rel":694},[66],[62,696,73],{"href":71,"rel":697},[66],[59,699,77],{},[79,701,82],{"id":81},[59,703,85],{},[87,705,706],{"className":89,"code":90,"language":91,"meta":92,"style":92},[94,707,708],{"__ignoreMap":92},[97,709,710,712,714,716,718],{"class":99,"line":100},[97,711,104],{"class":103},[97,713,108],{"class":107},[97,715,111],{"class":107},[97,717,114],{"class":107},[97,719,118],{"class":117},[59,721,121,722,125],{},[94,723,124],{},[87,725,726],{"className":89,"code":128,"language":91,"meta":92,"style":92},[94,727,728],{"__ignoreMap":92},[97,729,730,732,734],{"class":99,"line":100},[97,731,135],{"class":103},[97,733,138],{"class":107},[97,735,141],{"class":107},[59,737,144,738,148],{},[94,739,147],{},[79,741,152],{"id":151},[59,743,155,744,161,747,165,749,169],{},[62,745,160],{"href":158,"rel":746},[66],[94,748,164],{},[94,750,168],{},[59,752,172],{},[87,754,755],{"className":175,"code":176,"language":177,"meta":92,"style":92},[94,756,757,761,783,807,811,815,819,829],{"__ignoreMap":92},[97,758,759],{"class":99,"line":100},[97,760,185],{"class":184},[97,762,763,765,767,769,771,773,775,777,779,781],{"class":99,"line":188},[97,764,192],{"class":191},[97,766,195],{"class":191},[97,768,199],{"class":198},[97,770,203],{"class":202},[97,772,206],{"class":191},[97,774,209],{"class":202},[97,776,213],{"class":212},[97,778,216],{"class":202},[97,780,220],{"class":219},[97,782,223],{"class":202},[97,784,785,787,789,791,793,795,797,799,801,803,805],{"class":99,"line":226},[97,786,229],{"class":219},[97,788,233],{"class":232},[97,790,236],{"class":219},[97,792,239],{"class":198},[97,794,203],{"class":202},[97,796,213],{"class":244},[97,798,247],{"class":202},[97,800,251],{"class":250},[97,802,255],{"class":254},[97,804,258],{"class":250},[97,806,261],{"class":202},[97,808,809],{"class":99,"line":264},[97,810,267],{"emptyLinePlaceholder":11},[97,812,813],{"class":99,"line":270},[97,814,273],{"class":184},[97,816,817],{"class":99,"line":276},[97,818,267],{"emptyLinePlaceholder":11},[97,820,821,823,825,827],{"class":99,"line":281},[97,822,285],{"class":284},[97,824,288],{"class":250},[97,826,291],{"class":254},[97,828,294],{"class":250},[97,830,831],{"class":99,"line":297},[97,832,300],{"class":202},[59,834,303],{},[79,836,307],{"id":306},[59,838,310,839,148],{},[62,840,315],{"href":313,"rel":841},[66],[317,843,844],{},[59,845,846,326],{},[62,847,325],{"href":323,"rel":848},[66],[59,850,329],{},[59,852,332,853,336],{},[94,854,335],{},[87,856,857],{"className":339,"code":340,"filename":335,"language":341,"meta":92,"style":92},[94,858,859],{"__ignoreMap":92},[97,860,861],{"class":99,"line":100},[97,862,340],{"class":107},[59,864,350],{},[87,866,867],{"className":339,"code":353,"filename":335,"language":341,"meta":92,"style":92},[94,868,869],{"__ignoreMap":92},[97,870,871],{"class":99,"line":100},[97,872,353],{"class":107},[59,874,362,875,368],{},[62,876,367],{"href":365,"rel":877},[66],[87,879,880],{"className":371,"code":372,"filename":373,"language":5,"meta":92,"style":92},[94,881,882,886,896,914,932,948,952],{"__ignoreMap":92},[97,883,884],{"class":99,"line":100},[97,885,380],{"class":202},[97,887,888,890,892,894],{"class":99,"line":188},[97,889,386],{"class":385},[97,891,389],{"class":232},[97,893,392],{"class":385},[97,895,395],{"class":202},[97,897,898,900,902,904,906,908,910,912],{"class":99,"line":226},[97,899,400],{"class":385},[97,901,403],{"class":117},[97,903,392],{"class":385},[97,905,408],{"class":202},[97,907,392],{"class":250},[97,909,413],{"class":254},[97,911,392],{"class":250},[97,913,418],{"class":202},[97,915,916,918,920,922,924,926,928,930],{"class":99,"line":264},[97,917,400],{"class":385},[97,919,425],{"class":117},[97,921,392],{"class":385},[97,923,408],{"class":202},[97,925,392],{"class":250},[97,927,434],{"class":254},[97,929,392],{"class":250},[97,931,418],{"class":202},[97,933,934,936,938,940,942,944,946],{"class":99,"line":270},[97,935,400],{"class":385},[97,937,445],{"class":117},[97,939,392],{"class":385},[97,941,408],{"class":202},[97,943,392],{"class":250},[97,945,454],{"class":254},[97,947,457],{"class":250},[97,949,950],{"class":99,"line":276},[97,951,462],{"class":202},[97,953,954],{"class":99,"line":281},[97,955,467],{"class":202},[59,957,470],{},[87,959,960],{"className":175,"code":473,"filename":474,"language":177,"meta":92,"style":92},[94,961,962,984,988,998,1002,1006,1010,1018,1032,1052,1066,1070],{"__ignoreMap":92},[97,963,964,966,968,970,972,974,976,978,980,982],{"class":99,"line":100},[97,965,481],{"class":191},[97,967,484],{"class":202},[97,969,488],{"class":487},[97,971,247],{"class":202},[97,973,493],{"class":487},[97,975,496],{"class":202},[97,977,500],{"class":499},[97,979,251],{"class":250},[97,981,505],{"class":254},[97,983,508],{"class":250},[97,985,986],{"class":99,"line":188},[97,987,267],{"emptyLinePlaceholder":11},[97,989,990,992,994,996],{"class":99,"line":226},[97,991,192],{"class":191},[97,993,195],{"class":191},[97,995,488],{"class":198},[97,997,523],{"class":202},[97,999,1000],{"class":99,"line":264},[97,1001,528],{"class":184},[97,1003,1004],{"class":99,"line":270},[97,1005,267],{"emptyLinePlaceholder":11},[97,1007,1008],{"class":99,"line":276},[97,1009,537],{"class":184},[97,1011,1012,1014,1016],{"class":99,"line":281},[97,1013,542],{"class":487},[97,1015,545],{"class":202},[97,1017,223],{"class":202},[97,1019,1020,1022,1024,1026,1028,1030],{"class":99,"line":297},[97,1021,552],{"class":487},[97,1023,545],{"class":202},[97,1025,251],{"class":250},[97,1027,559],{"class":254},[97,1029,258],{"class":250},[97,1031,418],{"class":202},[97,1033,1034,1036,1038,1040,1042,1044,1046,1048,1050],{"class":99,"line":566},[97,1035,569],{"class":487},[97,1037,545],{"class":202},[97,1039,574],{"class":219},[97,1041,577],{"class":244},[97,1043,148],{"class":202},[97,1045,582],{"class":244},[97,1047,148],{"class":202},[97,1049,587],{"class":232},[97,1051,418],{"class":202},[97,1053,1054,1056,1058,1060,1062,1064],{"class":99,"line":592},[97,1055,595],{"class":487},[97,1057,545],{"class":202},[97,1059,251],{"class":250},[97,1061,147],{"class":254},[97,1063,258],{"class":250},[97,1065,418],{"class":202},[97,1067,1068],{"class":99,"line":608},[97,1069,462],{"class":202},[97,1071,1072],{"class":99,"line":613},[97,1073,300],{"class":202},[59,1075,618],{},[59,1077,1078],{},[622,1079],{"alt":624,"src":625},[59,1081,628],{},[79,1083,632],{"id":631},[59,1085,635],{},[59,1087,638,1088,644],{},[62,1089,643],{"href":641,"rel":1090},[66],[59,1092,647,1093,545],{},[62,1094,652],{"href":650,"rel":1095},[66],[654,1097,656],{},{"title":92,"searchDepth":188,"depth":188,"links":1099},[1100,1101,1102,1103],{"id":81,"depth":188,"text":82},{"id":151,"depth":188,"text":152},{"id":306,"depth":188,"text":307},{"id":631,"depth":188,"text":632},{"categories":1105,"date":669,"readingTime":1106},[664,665,666,667],{"text":676,"minutes":677,"time":678,"words":679},{"title":54,"description":670},{"loc":674,"images":1109,"lastmod":669},[1110],{"loc":625},"R-2nm2HOs8wzzlbRmWPTjBXsVjGZUa9tJBsw_tgKc-Q",[1113,1117],{"title":1114,"path":1115,"stem":1116,"children":-1},"Login at Supabase via REST API in Playwright E2E Test","\u002Fblog\u002Flogin-at-supabase-via-rest-api-in-playwright-e2e-test","blog\u002Flogin-at-supabase-via-rest-api-in-playwright-e2e-test\u002Findex",{"title":1118,"path":1119,"stem":1120,"children":-1},"Unlocking the Power of v-for Loops in Vue With These Useful Tips","\u002Fblog\u002Funlocking-the-power-of-v-for-loops-in-vue-with-these-useful-tips","blog\u002Funlocking-the-power-of-v-for-loops-in-vue-with-these-useful-tips\u002Findex",[1122,1127,1132,1137],{"cover":1123,"date":1124,"slug":1125,"title":1126,"to":1125},"blog\u002Fhow-to-setup-an-mcp-server-for-an-existing-nuxt-app\u002Fog.png","2026-07-28","\u002Fblog\u002Fhow-to-setup-an-mcp-server-for-an-existing-nuxt-app","How to Set Up an MCP Server for an Existing Nuxt App",{"cover":1128,"date":1129,"slug":1130,"title":1131,"to":1130},"blog\u002Fself-host-your-nuxt-app-with-coolify\u002Fog.png","2024-06-25","\u002Fblog\u002Fself-host-your-nuxt-app-with-coolify","Self-Host Your Nuxt App With Coolify",{"cover":1133,"date":1134,"slug":1135,"title":1136,"to":1135},"blog\u002Fuse-shiki-to-style-code-blocks-in-html-emails\u002FBlog_Post__Shiki_Code_Email_envl3j.jpg","2023-02-01","\u002Fblog\u002Fuse-shiki-to-style-code-blocks-in-html-emails","Use Shiki to Style Code Blocks in HTML Emails",{"cover":1138,"date":1139,"slug":1140,"title":1141,"to":1140},"blog\u002Fwhy-i-switched-back-from-vscode-to-intellij\u002Fog.png","2025-09-14","\u002Fblog\u002Fwhy-i-switched-back-from-vscode-to-intellij-idea","Why I Switched Back From VS Code to IntelliJ IDEA: A Developer's Journey"]