[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$KiqIp5Qu8t":3,"blog-\u002Fblog\u002Fdockerizing-a-nuxt-app":52,"blogToc-\u002Fblog\u002Fdockerizing-a-nuxt-app":797,"blog-surrounding-\u002Fblog\u002Fdockerizing-a-nuxt-app":1291,"blog-similar-posts-\u002Fblog\u002Fdockerizing-a-nuxt-app":1300},{"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":777,"cover":781,"date":782,"description":783,"extension":784,"lastUpdated":785,"meta":786,"navigation":11,"ogImage":785,"path":787,"readingTime":788,"robots":785,"schemaOrg":785,"seo":793,"sitemap":794,"stem":795,"tags":785,"__hash__":796},"blog\u002Fblog\u002Fdockerizing-a-nuxt-app\u002Findex.md","Dockerizing a Nuxt App: A Comprehensive Guide",{"type":56,"value":57,"toc":768},"minimark",[58,69,72,77,80,109,113,116,150,154,157,204,211,215,222,228,554,558,564,587,597,600,620,630,634,637,644,717,723,736,740,743,746,755,764],[59,60,61,68],"p",{},[62,63,67],"a",{"href":64,"rel":65},"https:\u002F\u002Fwww.docker.com\u002F",[66],"nofollow","Docker"," has revolutionized the way developers build, ship, and run applications by providing a consistent environment for development, testing, and production.",[59,70,71],{},"In this guide, I'll walk you through the steps to dockerize a Nuxt 3+ application, enabling you to create a containerized version of your app that can be easily deployed across different environments.",[73,74,76],"h2",{"id":75},"why-dockerize-your-nuxt-app","Why Dockerize Your Nuxt App?",[59,78,79],{},"Before we dive into the details, let's discuss why you might want to dockerize your Nuxt 3 app:",[81,82,83,91,97,103],"ol",{},[84,85,86,90],"li",{},[87,88,89],"strong",{},"Consistency",": Docker ensures that your application runs the same way on any machine, eliminating the \"works on my machine\" problem.",[84,92,93,96],{},[87,94,95],{},"Isolation",": Each application runs in its own container, isolated from other applications and their dependencies.",[84,98,99,102],{},[87,100,101],{},"Scalability",": Docker makes it easier to scale your applications horizontally by running multiple containers.",[84,104,105,108],{},[87,106,107],{},"Portability",": Docker containers can run on any system that supports Docker, making it easy to move applications between environments.",[73,110,112],{"id":111},"prerequisites","Prerequisites",[59,114,115],{},"To follow along with this guide, you'll need the following:",[117,118,119,141,144,147],"ul",{},[84,120,121,122,127,128,132,133,136,137,140],{},"I'm using ",[62,123,126],{"href":124,"rel":125},"https:\u002F\u002Fpnpm.io\u002F",[66],"pnpm"," as the package manager in this guide, but you can use ",[129,130,131],"code",{},"npm",", ",[129,134,135],{},"yarn"," or ",[129,138,139],{},"bun"," if you prefer.",[84,142,143],{},"Basic knowledge of Docker and Docker Compose.",[84,145,146],{},"A Nuxt 3+ application.",[84,148,149],{},"Docker installed on your machine.",[73,151,153],{"id":152},"step-1-set-up-your-nuxt-3-application","Step 1: Set Up Your Nuxt 3 Application",[59,155,156],{},"If you don't have a Nuxt 3+ app already, create one using the following commands:",[158,159,164],"pre",{"className":160,"code":161,"language":162,"meta":163,"style":163},"language-bash shiki shiki-themes github-light poimandres poimandres","pnpm dlx nuxi@latest init my-nuxt-app\ncd my-nuxt-app\npnpm install\n","bash","",[129,165,166,187,196],{"__ignoreMap":163},[167,168,171,174,178,181,184],"span",{"class":169,"line":170},"line",1,[167,172,126],{"class":173},"sgaD9",[167,175,177],{"class":176},"sMmyg"," dlx",[167,179,180],{"class":176}," nuxi@latest",[167,182,183],{"class":176}," init",[167,185,186],{"class":176}," my-nuxt-app\n",[167,188,190,194],{"class":169,"line":189},2,[167,191,193],{"class":192},"sDR3q","cd",[167,195,186],{"class":176},[167,197,199,201],{"class":169,"line":198},3,[167,200,126],{"class":173},[167,202,203],{"class":176}," install\n",[59,205,206,207,210],{},"This will create a new Nuxt 3+ application in the ",[129,208,209],{},"my-nuxt-app"," directory and install all the necessary dependencies.",[73,212,214],{"id":213},"step-2-create-a-dockerfile","Step 2: Create a Dockerfile",[59,216,217,218,221],{},"In the root of your Nuxt 3+ application, create a file named ",[129,219,220],{},"Dockerfile",". This file will define the environment and the steps needed to run your application inside a Docker container.",[59,223,224,225,227],{},"Here's an example ",[129,226,220],{}," for a Nuxt 3+ application:",[158,229,233],{"className":230,"code":231,"filename":220,"language":232,"meta":163,"style":163},"language-dockerfile shiki shiki-themes github-light poimandres poimandres","ARG NODE_VERSION=20.14.0\n\n# Create build stage\nFROM node:${NODE_VERSION}-slim AS build\n\n# Enable pnpm\nENV PNPM_HOME=\"\u002Fpnpm\"\nENV PATH=\"$PNPM_HOME:$PATH\"\nRUN corepack enable\n\n# Set the working directory inside the container\nWORKDIR \u002Fapp\n\n# Copy package.json and pnpm-lock.yaml files to the working directory\nCOPY .\u002Fpackage.json \u002Fapp\u002F\nCOPY .\u002Fpnpm-lock.yaml \u002Fapp\u002F\n\n## Install dependencies\nRUN pnpm install --shamefully-hoist\n\n# Copy the rest of the application files to the working directory\nCOPY . .\u002F\n\n# Build the application\nRUN pnpm run build\n\n# Create a new stage for the production image\nFROM node:${NODE_VERSION}-slim\n\n# Set the working directory inside the container\nWORKDIR \u002Fapp\n\n# Copy the output from the build stage to the working directory\nCOPY --from=build \u002Fapp\u002F.output .\u002F\n\n# Define environment variables\nENV HOST=0.0.0.0 NODE_ENV=production\nENV NODE_ENV=production\n\n# Expose the port the application will run on\nEXPOSE 3000\n\n# Start the application\nCMD [\"node\",\"\u002Fapp\u002Fserver\u002Findex.mjs\"]\n","dockerfile",[129,234,235,245,250,256,271,276,282,295,306,315,320,326,335,340,346,355,363,368,374,382,387,393,401,406,412,420,425,431,439,444,449,456,461,467,475,480,486,494,502,507,513,522,527,533],{"__ignoreMap":163},[167,236,237,241],{"class":169,"line":170},[167,238,240],{"class":239},"sRZEA","ARG",[167,242,244],{"class":243},"sygvE"," NODE_VERSION=20.14.0\n",[167,246,247],{"class":169,"line":189},[167,248,249],{"emptyLinePlaceholder":11},"\n",[167,251,252],{"class":169,"line":198},[167,253,255],{"class":254},"s1MN7","# Create build stage\n",[167,257,259,262,265,268],{"class":169,"line":258},4,[167,260,261],{"class":239},"FROM",[167,263,264],{"class":243}," node:${NODE_VERSION}-slim ",[167,266,267],{"class":239},"AS",[167,269,270],{"class":243}," build\n",[167,272,274],{"class":169,"line":273},5,[167,275,249],{"emptyLinePlaceholder":11},[167,277,279],{"class":169,"line":278},6,[167,280,281],{"class":254},"# Enable pnpm\n",[167,283,285,288,291],{"class":169,"line":284},7,[167,286,287],{"class":239},"ENV",[167,289,290],{"class":243}," PNPM_HOME=",[167,292,294],{"class":293},"skTdI","\"\u002Fpnpm\"\n",[167,296,298,300,303],{"class":169,"line":297},8,[167,299,287],{"class":239},[167,301,302],{"class":243}," PATH=",[167,304,305],{"class":293},"\"$PNPM_HOME:$PATH\"\n",[167,307,309,312],{"class":169,"line":308},9,[167,310,311],{"class":239},"RUN",[167,313,314],{"class":243}," corepack enable\n",[167,316,318],{"class":169,"line":317},10,[167,319,249],{"emptyLinePlaceholder":11},[167,321,323],{"class":169,"line":322},11,[167,324,325],{"class":254},"# Set the working directory inside the container\n",[167,327,329,332],{"class":169,"line":328},12,[167,330,331],{"class":239},"WORKDIR",[167,333,334],{"class":243}," \u002Fapp\n",[167,336,338],{"class":169,"line":337},13,[167,339,249],{"emptyLinePlaceholder":11},[167,341,343],{"class":169,"line":342},14,[167,344,345],{"class":254},"# Copy package.json and pnpm-lock.yaml files to the working directory\n",[167,347,349,352],{"class":169,"line":348},15,[167,350,351],{"class":239},"COPY",[167,353,354],{"class":243}," .\u002Fpackage.json \u002Fapp\u002F\n",[167,356,358,360],{"class":169,"line":357},16,[167,359,351],{"class":239},[167,361,362],{"class":243}," .\u002Fpnpm-lock.yaml \u002Fapp\u002F\n",[167,364,366],{"class":169,"line":365},17,[167,367,249],{"emptyLinePlaceholder":11},[167,369,371],{"class":169,"line":370},18,[167,372,373],{"class":254},"## Install dependencies\n",[167,375,377,379],{"class":169,"line":376},19,[167,378,311],{"class":239},[167,380,381],{"class":243}," pnpm install --shamefully-hoist\n",[167,383,385],{"class":169,"line":384},20,[167,386,249],{"emptyLinePlaceholder":11},[167,388,390],{"class":169,"line":389},21,[167,391,392],{"class":254},"# Copy the rest of the application files to the working directory\n",[167,394,396,398],{"class":169,"line":395},22,[167,397,351],{"class":239},[167,399,400],{"class":243}," . .\u002F\n",[167,402,404],{"class":169,"line":403},23,[167,405,249],{"emptyLinePlaceholder":11},[167,407,409],{"class":169,"line":408},24,[167,410,411],{"class":254},"# Build the application\n",[167,413,415,417],{"class":169,"line":414},25,[167,416,311],{"class":239},[167,418,419],{"class":243}," pnpm run build\n",[167,421,423],{"class":169,"line":422},26,[167,424,249],{"emptyLinePlaceholder":11},[167,426,428],{"class":169,"line":427},27,[167,429,430],{"class":254},"# Create a new stage for the production image\n",[167,432,434,436],{"class":169,"line":433},28,[167,435,261],{"class":239},[167,437,438],{"class":243}," node:${NODE_VERSION}-slim\n",[167,440,442],{"class":169,"line":441},29,[167,443,249],{"emptyLinePlaceholder":11},[167,445,447],{"class":169,"line":446},30,[167,448,325],{"class":254},[167,450,452,454],{"class":169,"line":451},31,[167,453,331],{"class":239},[167,455,334],{"class":243},[167,457,459],{"class":169,"line":458},32,[167,460,249],{"emptyLinePlaceholder":11},[167,462,464],{"class":169,"line":463},33,[167,465,466],{"class":254},"# Copy the output from the build stage to the working directory\n",[167,468,470,472],{"class":169,"line":469},34,[167,471,351],{"class":239},[167,473,474],{"class":243}," --from=build \u002Fapp\u002F.output .\u002F\n",[167,476,478],{"class":169,"line":477},35,[167,479,249],{"emptyLinePlaceholder":11},[167,481,483],{"class":169,"line":482},36,[167,484,485],{"class":254},"# Define environment variables\n",[167,487,489,491],{"class":169,"line":488},37,[167,490,287],{"class":239},[167,492,493],{"class":243}," HOST=0.0.0.0 NODE_ENV=production\n",[167,495,497,499],{"class":169,"line":496},38,[167,498,287],{"class":239},[167,500,501],{"class":243}," NODE_ENV=production\n",[167,503,505],{"class":169,"line":504},39,[167,506,249],{"emptyLinePlaceholder":11},[167,508,510],{"class":169,"line":509},40,[167,511,512],{"class":254},"# Expose the port the application will run on\n",[167,514,516,519],{"class":169,"line":515},41,[167,517,518],{"class":239},"EXPOSE",[167,520,521],{"class":243}," 3000\n",[167,523,525],{"class":169,"line":524},42,[167,526,249],{"emptyLinePlaceholder":11},[167,528,530],{"class":169,"line":529},43,[167,531,532],{"class":254},"# Start the application\n",[167,534,536,539,542,545,548,551],{"class":169,"line":535},44,[167,537,538],{"class":239},"CMD",[167,540,541],{"class":243}," [",[167,543,544],{"class":293},"\"node\"",[167,546,547],{"class":243},",",[167,549,550],{"class":293},"\"\u002Fapp\u002Fserver\u002Findex.mjs\"",[167,552,553],{"class":243},"]\n",[73,555,557],{"id":556},"step-3-build-and-run-the-docker-image","Step 3: Build and Run the Docker Image",[59,559,560,561,563],{},"With the ",[129,562,220],{}," in place, you can build the Docker image using the following command:",[158,565,567],{"className":160,"code":566,"language":162,"meta":163,"style":163},"docker build -t my-nuxt-app .\n",[129,568,569],{"__ignoreMap":163},[167,570,571,574,577,581,584],{"class":169,"line":170},[167,572,573],{"class":173},"docker",[167,575,576],{"class":176}," build",[167,578,580],{"class":579},"snkik"," -t",[167,582,583],{"class":176}," my-nuxt-app",[167,585,586],{"class":176}," .\n",[59,588,589,590,592,593,596],{},"This command tells Docker to build an image with the tag ",[129,591,209],{}," using the current directory (denoted by the ",[129,594,595],{},".",").",[59,598,599],{},"Once the image is built, you can run a container using the following command:",[158,601,603],{"className":160,"code":602,"language":162,"meta":163,"style":163},"docker run -p 3000:3000 my-nuxt-app\n",[129,604,605],{"__ignoreMap":163},[167,606,607,609,612,615,618],{"class":169,"line":170},[167,608,573],{"class":173},[167,610,611],{"class":176}," run",[167,613,614],{"class":579}," -p",[167,616,617],{"class":176}," 3000:3000",[167,619,186],{"class":176},[59,621,622,623,625,626,629],{},"This command runs the ",[129,624,209],{}," container and maps port 3000 on your host machine to port 3000 inside the container. You should now be able to access your Nuxt 3 application by navigating to ",[129,627,628],{},"http:\u002F\u002Flocalhost:3000"," in your web browser.",[73,631,633],{"id":632},"step-4-using-docker-compose-optional","Step 4: Using Docker Compose (Optional)",[59,635,636],{},"For more complex applications with multiple services (e.g., a database and a web server), you can use Docker Compose to define and run multi-container Docker applications.",[59,638,639,640,643],{},"Create a ",[129,641,642],{},"docker-compose.yml"," file in the root of your project:",[158,645,649],{"className":646,"code":647,"language":648,"meta":163,"style":163},"language-yaml shiki shiki-themes github-light poimandres poimandres","version: '3'\nservices:\n  web:\n    build: .\n    ports:\n      - \"3000:3000\"\n","yaml",[129,650,651,670,678,685,696,703],{"__ignoreMap":163},[167,652,653,657,660,664,667],{"class":169,"line":170},[167,654,656],{"class":655},"s8PnL","version",[167,658,659],{"class":243},": ",[167,661,663],{"class":662},"srEIG","'",[167,665,666],{"class":293},"3",[167,668,669],{"class":662},"'\n",[167,671,672,675],{"class":169,"line":189},[167,673,674],{"class":655},"services",[167,676,677],{"class":243},":\n",[167,679,680,683],{"class":169,"line":198},[167,681,682],{"class":655},"  web",[167,684,677],{"class":243},[167,686,687,690,692],{"class":169,"line":258},[167,688,689],{"class":655},"    build",[167,691,659],{"class":243},[167,693,695],{"class":694},"s6g4C",".\n",[167,697,698,701],{"class":169,"line":273},[167,699,700],{"class":655},"    ports",[167,702,677],{"class":243},[167,704,705,708,711,714],{"class":169,"line":278},[167,706,707],{"class":243},"      - ",[167,709,710],{"class":662},"\"",[167,712,713],{"class":293},"3000:3000",[167,715,716],{"class":662},"\"\n",[59,718,719,720,722],{},"With this ",[129,721,642],{}," file, you can build and run your multi-container application using a single command:",[158,724,726],{"className":160,"code":725,"language":162,"meta":163,"style":163},"docker-compose up\n",[129,727,728],{"__ignoreMap":163},[167,729,730,733],{"class":169,"line":170},[167,731,732],{"class":173},"docker-compose",[167,734,735],{"class":176}," up\n",[73,737,739],{"id":738},"conclusion","Conclusion",[59,741,742],{},"Dockerizing your Nuxt 3 application provides numerous benefits, including consistency, isolation, scalability, and portability.",[59,744,745],{},"By following this guide, you can easily create a Docker container for your Nuxt 3+ app and run it in any environment that supports Docker. Whether you're a solo developer or part of a larger team, Docker can help streamline your development workflow and simplify deployment processes.",[59,747,748,749,754],{},"If you liked this article, follow me on ",[62,750,753],{"href":751,"rel":752},"https:\u002F\u002Fx.com\u002Fmokkapps",[66],"X"," to get notified about my new blog posts and more content.",[59,756,757,758,763],{},"Alternatively (or additionally), you can ",[62,759,762],{"href":760,"rel":761},"https:\u002F\u002Fweekly-vue.news",[66],"subscribe to my weekly Vue & Nuxt newsletter",":",[765,766,767],"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 .sDR3q, html code.shiki .sDR3q{--shiki-light:#005CC5;--shiki-default:#91B4D5;--shiki-dark:#91B4D5}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 .snkik, html code.shiki .snkik{--shiki-light:#005CC5;--shiki-default:#ADD7FF;--shiki-dark:#ADD7FF}html pre.shiki code .s8PnL, html code.shiki .s8PnL{--shiki-light:#22863A;--shiki-default:#5DE4C7;--shiki-dark:#5DE4C7}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 .s6g4C, html code.shiki .s6g4C{--shiki-light:#005CC5;--shiki-default:#5DE4C7;--shiki-dark:#5DE4C7}html pre.shiki code .sRZEA, html code.shiki .sRZEA{--shiki-light:#D73A49;--shiki-default:#5DE4C7;--shiki-dark:#5DE4C7}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}",{"title":163,"searchDepth":189,"depth":189,"links":769},[770,771,772,773,774,775,776],{"id":75,"depth":189,"text":76},{"id":111,"depth":189,"text":112},{"id":152,"depth":189,"text":153},{"id":213,"depth":189,"text":214},{"id":556,"depth":189,"text":557},{"id":632,"depth":189,"text":633},{"id":738,"depth":189,"text":739},[778,779,780],"development","frontend","nuxt-js","blog\u002Fdockerizing-a-nuxt-app\u002Fog.png","2024-07-09","Learn how to dockerize your Nuxt 3+ application to ensure consistency, isolation, scalability, and portability across different environments. This guide walks you through the steps to create a Docker container for your Nuxt 3+ app, making deployment seamless and efficient.","md",null,{},"\u002Fblog\u002Fdockerizing-a-nuxt-app",{"text":789,"minutes":790,"time":791,"words":792},"4 min read",3.24,194400,648,{"title":54,"description":783},{"loc":787,"lastmod":782},"blog\u002Fdockerizing-a-nuxt-app\u002Findex","kzh4ZBY14eCgY_AE2z_HbFTqJGlkpEhdjAPWFZ7Jgw8",{"id":798,"title":54,"body":799,"cover":781,"description":783,"extension":784,"meta":1285,"navigation":11,"path":787,"robots":785,"seo":1288,"sitemap":1289,"stem":795,"__hash__":1290},"content\u002Fblog\u002Fdockerizing-a-nuxt-app\u002Findex.md",{"type":56,"value":800,"toc":1276},[801,806,808,810,812,830,832,834,853,855,857,885,889,891,895,899,1131,1133,1137,1153,1159,1161,1177,1183,1185,1187,1191,1243,1247,1257,1259,1261,1263,1268,1273],[59,802,803,68],{},[62,804,67],{"href":64,"rel":805},[66],[59,807,71],{},[73,809,76],{"id":75},[59,811,79],{},[81,813,814,818,822,826],{},[84,815,816,90],{},[87,817,89],{},[84,819,820,96],{},[87,821,95],{},[84,823,824,102],{},[87,825,101],{},[84,827,828,108],{},[87,829,107],{},[73,831,112],{"id":111},[59,833,115],{},[117,835,836,847,849,851],{},[84,837,121,838,127,841,132,843,136,845,140],{},[62,839,126],{"href":124,"rel":840},[66],[129,842,131],{},[129,844,135],{},[129,846,139],{},[84,848,143],{},[84,850,146],{},[84,852,149],{},[73,854,153],{"id":152},[59,856,156],{},[158,858,859],{"className":160,"code":161,"language":162,"meta":163,"style":163},[129,860,861,873,879],{"__ignoreMap":163},[167,862,863,865,867,869,871],{"class":169,"line":170},[167,864,126],{"class":173},[167,866,177],{"class":176},[167,868,180],{"class":176},[167,870,183],{"class":176},[167,872,186],{"class":176},[167,874,875,877],{"class":169,"line":189},[167,876,193],{"class":192},[167,878,186],{"class":176},[167,880,881,883],{"class":169,"line":198},[167,882,126],{"class":173},[167,884,203],{"class":176},[59,886,206,887,210],{},[129,888,209],{},[73,890,214],{"id":213},[59,892,217,893,221],{},[129,894,220],{},[59,896,224,897,227],{},[129,898,220],{},[158,900,901],{"className":230,"code":231,"filename":220,"language":232,"meta":163,"style":163},[129,902,903,909,913,917,927,931,935,943,951,957,961,965,971,975,979,985,991,995,999,1005,1009,1013,1019,1023,1027,1033,1037,1041,1047,1051,1055,1061,1065,1069,1075,1079,1083,1089,1095,1099,1103,1109,1113,1117],{"__ignoreMap":163},[167,904,905,907],{"class":169,"line":170},[167,906,240],{"class":239},[167,908,244],{"class":243},[167,910,911],{"class":169,"line":189},[167,912,249],{"emptyLinePlaceholder":11},[167,914,915],{"class":169,"line":198},[167,916,255],{"class":254},[167,918,919,921,923,925],{"class":169,"line":258},[167,920,261],{"class":239},[167,922,264],{"class":243},[167,924,267],{"class":239},[167,926,270],{"class":243},[167,928,929],{"class":169,"line":273},[167,930,249],{"emptyLinePlaceholder":11},[167,932,933],{"class":169,"line":278},[167,934,281],{"class":254},[167,936,937,939,941],{"class":169,"line":284},[167,938,287],{"class":239},[167,940,290],{"class":243},[167,942,294],{"class":293},[167,944,945,947,949],{"class":169,"line":297},[167,946,287],{"class":239},[167,948,302],{"class":243},[167,950,305],{"class":293},[167,952,953,955],{"class":169,"line":308},[167,954,311],{"class":239},[167,956,314],{"class":243},[167,958,959],{"class":169,"line":317},[167,960,249],{"emptyLinePlaceholder":11},[167,962,963],{"class":169,"line":322},[167,964,325],{"class":254},[167,966,967,969],{"class":169,"line":328},[167,968,331],{"class":239},[167,970,334],{"class":243},[167,972,973],{"class":169,"line":337},[167,974,249],{"emptyLinePlaceholder":11},[167,976,977],{"class":169,"line":342},[167,978,345],{"class":254},[167,980,981,983],{"class":169,"line":348},[167,982,351],{"class":239},[167,984,354],{"class":243},[167,986,987,989],{"class":169,"line":357},[167,988,351],{"class":239},[167,990,362],{"class":243},[167,992,993],{"class":169,"line":365},[167,994,249],{"emptyLinePlaceholder":11},[167,996,997],{"class":169,"line":370},[167,998,373],{"class":254},[167,1000,1001,1003],{"class":169,"line":376},[167,1002,311],{"class":239},[167,1004,381],{"class":243},[167,1006,1007],{"class":169,"line":384},[167,1008,249],{"emptyLinePlaceholder":11},[167,1010,1011],{"class":169,"line":389},[167,1012,392],{"class":254},[167,1014,1015,1017],{"class":169,"line":395},[167,1016,351],{"class":239},[167,1018,400],{"class":243},[167,1020,1021],{"class":169,"line":403},[167,1022,249],{"emptyLinePlaceholder":11},[167,1024,1025],{"class":169,"line":408},[167,1026,411],{"class":254},[167,1028,1029,1031],{"class":169,"line":414},[167,1030,311],{"class":239},[167,1032,419],{"class":243},[167,1034,1035],{"class":169,"line":422},[167,1036,249],{"emptyLinePlaceholder":11},[167,1038,1039],{"class":169,"line":427},[167,1040,430],{"class":254},[167,1042,1043,1045],{"class":169,"line":433},[167,1044,261],{"class":239},[167,1046,438],{"class":243},[167,1048,1049],{"class":169,"line":441},[167,1050,249],{"emptyLinePlaceholder":11},[167,1052,1053],{"class":169,"line":446},[167,1054,325],{"class":254},[167,1056,1057,1059],{"class":169,"line":451},[167,1058,331],{"class":239},[167,1060,334],{"class":243},[167,1062,1063],{"class":169,"line":458},[167,1064,249],{"emptyLinePlaceholder":11},[167,1066,1067],{"class":169,"line":463},[167,1068,466],{"class":254},[167,1070,1071,1073],{"class":169,"line":469},[167,1072,351],{"class":239},[167,1074,474],{"class":243},[167,1076,1077],{"class":169,"line":477},[167,1078,249],{"emptyLinePlaceholder":11},[167,1080,1081],{"class":169,"line":482},[167,1082,485],{"class":254},[167,1084,1085,1087],{"class":169,"line":488},[167,1086,287],{"class":239},[167,1088,493],{"class":243},[167,1090,1091,1093],{"class":169,"line":496},[167,1092,287],{"class":239},[167,1094,501],{"class":243},[167,1096,1097],{"class":169,"line":504},[167,1098,249],{"emptyLinePlaceholder":11},[167,1100,1101],{"class":169,"line":509},[167,1102,512],{"class":254},[167,1104,1105,1107],{"class":169,"line":515},[167,1106,518],{"class":239},[167,1108,521],{"class":243},[167,1110,1111],{"class":169,"line":524},[167,1112,249],{"emptyLinePlaceholder":11},[167,1114,1115],{"class":169,"line":529},[167,1116,532],{"class":254},[167,1118,1119,1121,1123,1125,1127,1129],{"class":169,"line":535},[167,1120,538],{"class":239},[167,1122,541],{"class":243},[167,1124,544],{"class":293},[167,1126,547],{"class":243},[167,1128,550],{"class":293},[167,1130,553],{"class":243},[73,1132,557],{"id":556},[59,1134,560,1135,563],{},[129,1136,220],{},[158,1138,1139],{"className":160,"code":566,"language":162,"meta":163,"style":163},[129,1140,1141],{"__ignoreMap":163},[167,1142,1143,1145,1147,1149,1151],{"class":169,"line":170},[167,1144,573],{"class":173},[167,1146,576],{"class":176},[167,1148,580],{"class":579},[167,1150,583],{"class":176},[167,1152,586],{"class":176},[59,1154,589,1155,592,1157,596],{},[129,1156,209],{},[129,1158,595],{},[59,1160,599],{},[158,1162,1163],{"className":160,"code":602,"language":162,"meta":163,"style":163},[129,1164,1165],{"__ignoreMap":163},[167,1166,1167,1169,1171,1173,1175],{"class":169,"line":170},[167,1168,573],{"class":173},[167,1170,611],{"class":176},[167,1172,614],{"class":579},[167,1174,617],{"class":176},[167,1176,186],{"class":176},[59,1178,622,1179,625,1181,629],{},[129,1180,209],{},[129,1182,628],{},[73,1184,633],{"id":632},[59,1186,636],{},[59,1188,639,1189,643],{},[129,1190,642],{},[158,1192,1193],{"className":646,"code":647,"language":648,"meta":163,"style":163},[129,1194,1195,1207,1213,1219,1227,1233],{"__ignoreMap":163},[167,1196,1197,1199,1201,1203,1205],{"class":169,"line":170},[167,1198,656],{"class":655},[167,1200,659],{"class":243},[167,1202,663],{"class":662},[167,1204,666],{"class":293},[167,1206,669],{"class":662},[167,1208,1209,1211],{"class":169,"line":189},[167,1210,674],{"class":655},[167,1212,677],{"class":243},[167,1214,1215,1217],{"class":169,"line":198},[167,1216,682],{"class":655},[167,1218,677],{"class":243},[167,1220,1221,1223,1225],{"class":169,"line":258},[167,1222,689],{"class":655},[167,1224,659],{"class":243},[167,1226,695],{"class":694},[167,1228,1229,1231],{"class":169,"line":273},[167,1230,700],{"class":655},[167,1232,677],{"class":243},[167,1234,1235,1237,1239,1241],{"class":169,"line":278},[167,1236,707],{"class":243},[167,1238,710],{"class":662},[167,1240,713],{"class":293},[167,1242,716],{"class":662},[59,1244,719,1245,722],{},[129,1246,642],{},[158,1248,1249],{"className":160,"code":725,"language":162,"meta":163,"style":163},[129,1250,1251],{"__ignoreMap":163},[167,1252,1253,1255],{"class":169,"line":170},[167,1254,732],{"class":173},[167,1256,735],{"class":176},[73,1258,739],{"id":738},[59,1260,742],{},[59,1262,745],{},[59,1264,748,1265,754],{},[62,1266,753],{"href":751,"rel":1267},[66],[59,1269,757,1270,763],{},[62,1271,762],{"href":760,"rel":1272},[66],[765,1274,1275],{},"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 .sDR3q, html code.shiki .sDR3q{--shiki-light:#005CC5;--shiki-default:#91B4D5;--shiki-dark:#91B4D5}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 .sRZEA, html code.shiki .sRZEA{--shiki-light:#D73A49;--shiki-default:#5DE4C7;--shiki-dark:#5DE4C7}html pre.shiki code .sygvE, html code.shiki .sygvE{--shiki-light:#24292E;--shiki-default:#A6ACCD;--shiki-dark:#A6ACCD}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 .skTdI, html code.shiki .skTdI{--shiki-light:#032F62;--shiki-default:#5DE4C7;--shiki-dark:#5DE4C7}html pre.shiki code .snkik, html code.shiki .snkik{--shiki-light:#005CC5;--shiki-default:#ADD7FF;--shiki-dark:#ADD7FF}html pre.shiki code .s8PnL, html code.shiki .s8PnL{--shiki-light:#22863A;--shiki-default:#5DE4C7;--shiki-dark:#5DE4C7}html pre.shiki code .srEIG, html code.shiki .srEIG{--shiki-light:#032F62;--shiki-default:#A6ACCD;--shiki-dark:#A6ACCD}html pre.shiki code .s6g4C, html code.shiki .s6g4C{--shiki-light:#005CC5;--shiki-default:#5DE4C7;--shiki-dark:#5DE4C7}",{"title":163,"searchDepth":189,"depth":189,"links":1277},[1278,1279,1280,1281,1282,1283,1284],{"id":75,"depth":189,"text":76},{"id":111,"depth":189,"text":112},{"id":152,"depth":189,"text":153},{"id":213,"depth":189,"text":214},{"id":556,"depth":189,"text":557},{"id":632,"depth":189,"text":633},{"id":738,"depth":189,"text":739},{"categories":1286,"date":782,"readingTime":1287},[778,779,780],{"text":789,"minutes":790,"time":791,"words":792},{"title":54,"description":783},{"loc":787,"lastmod":782},"6fz1MLtFoSm-aMf_jhybK09eGuOcdP0sN9d5oeUXd2s",[1292,1296],{"title":1293,"path":1294,"stem":1295,"children":-1},"Analyze Memory Leaks in Your Nuxt App","\u002Fblog\u002Fanalyze-memory-leaks-in-your-nuxt-app","blog\u002Fanalyze-memory-leaks-in-your-nuxt-app\u002Findex",{"title":1297,"path":1298,"stem":1299,"children":-1},"Self-Host Your Nuxt App With Coolify","\u002Fblog\u002Fself-host-your-nuxt-app-with-coolify","blog\u002Fself-host-your-nuxt-app-with-coolify\u002Findex",[1301,1306,1309,1314],{"cover":1302,"date":1303,"slug":1304,"title":1305,"to":1304},"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":1307,"date":1308,"slug":1294,"title":1293,"to":1294},"blog\u002Fanalyze-memory-leaks-in-your-nuxt-app\u002Fog.png","2024-07-27",{"cover":1310,"date":1311,"slug":1312,"title":1313,"to":1312},"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",{"cover":1315,"date":1316,"slug":1317,"title":1318,"to":1317},"blog\u002Fconnecting-mysql-database-nuxt-drizzle-orm\u002Fog.jpg","2025-08-22","\u002Fblog\u002Fconnecting-mysql-database-nuxt-drizzle-orm","Connecting a MySQL Database in Nuxt with Drizzle ORM"]