Blog · 79 articles

Articles on Vue, Nuxt and frontend development

I'll write my extended thoughts here when 280 characters on X don't quite cut it.

Analyze Memory Leaks in Your Nuxt App Image

Analyze Memory Leaks in Your Nuxt App

In one of my client projects, we recently had to analyze and fix a memory leak in our Nuxt 3+ application. I share my experience and our steps to identify and fix the memory leak.
Dockerizing a Nuxt App: A Comprehensive Guide Image

Dockerizing a Nuxt App: A Comprehensive Guide

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.
Self-Host Your Nuxt App With Coolify Image

Self-Host Your Nuxt App With Coolify

I share my experiences of how I self-hosted my Nuxt apps with Coolify on Hetzner servers.
Simpler Two-Way Binding in Vue With defineModel Image

Simpler Two-Way Binding in Vue With defineModel

The new defineModel compiler macro has available since Vue 3.4 and makes two-way binding much simpler and cleaner.
Login at Supabase via REST API in Playwright E2E Test Image

Login at Supabase via REST API in Playwright E2E Test

Learn how to login a user via the Supabase REST API in a Playwright end-to-end test and test authenticated pages.
Use Nitro as Mock Server Image

Use Nitro as Mock Server

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.
Unlocking the Power of v-for Loops in Vue With These Useful Tips Image

Unlocking the Power of v-for Loops in Vue With These Useful Tips

Looping through arrays and objects is a common task in Vue applications. The v-for directive is the perfect tool for this job. It is mighty, and you can use it in many different ways. In this article, I will show you some valuable tips and tricks to get the most out of the v-for directive.
Focus & Code Diff in Nuxt Content Code Blocks Image

Focus & Code Diff in Nuxt Content Code Blocks

Custom code blocks are essential for my blog as my articles usually contain a lot of code snippets. My blog is powered by Nuxt Content v2, which is a Nuxt 3 module. I already wrote an article about how you can create custom code blocks using Nuxt Content v2.
Lazy Load Vue Component When It Becomes Visible Image

Lazy Load Vue Component When It Becomes Visible

In this blog post, I'll show you how a simple mechanism to lazy load your Vue components if they become visible using the Intersection Observer API.
A Comprehensive Guide to Data Fetching in Nuxt 3 Image

A Comprehensive Guide to Data Fetching in Nuxt 3

With Nuxt 3's rendering modes, you can execute API calls and render pages both on the client and server, which has some challenges. For example, we want to avoid duplicate network calls, efficient caching, and ensure that the calls work across environments. To address these challenges, Nuxt provides a built-in data fetching library ($fetch) and two composable (useFetch and useAsyncData).