1. Article

    Upgrading Nuxt v3 to v4 under 30 minutes

    Reading time: 6 minutes • Posted 6 months ago
    Astronauts

    TL;DR: I upgraded a 32k LOC Nuxt app from v3 to v4 in 29 minutes of actual work. Here's how it went and what I learned.

    I'm maintaining a reasonably sized Nuxt application - not massive, but substantial enough to make upgrade decisions matter. We're talking about a project (excluded tests here) with 32k lines of code spread across 173 files, with a healthy mix of 72 Vue components and 44 TypeScript files. The dependency footprint includes 34 production dependencies plus 7 development ones. So, not that big, which makes it a perfect candidate for an upgrade scenario!

  2. Tutorial

    Netlify Forms 💚 Nuxt Static Sites

    Posted 7 months ago

    If you're (like me) liking the ease of hosting with Netlify and are using Nuxt to power a static site, there is probably a rule of thumb which predicts when you'll need a form on your site. Luckily, Netlify has support built in, but you need to set up your configuration correctly for it to work.

    Let's see what we need to do in order to add a concise form (you'll know how to take it from there, I'm sure) and get submissions in your Netlify dashboard.

  3. Article

    Great Migrations: Upgrading at scale

    Reading time: 8 minutes • Posted 3 years ago
    Wildebeest crossing a river

    This article is inspired by the BBC produces series on nature, with a particular episode dealing with the wildebeest migration. The series was presented by Sir David Attenborough, and I will try and channel his spirit in this article. I have fond memories of these sort of documentaries, watching them together with my father. Those were simpler times.

    I’ve used this theme and contents in talks that I gave with a similar title. Note this article details the approach that works best for us at Jumbo Supermarkten. It might not be the best in your situation, so treat its contents as inspirational.

  4. Tutorial

    Using reference based linking from Contentful

    Posted 3 years ago

    With some nicely formatted content, the blog becomes readable, so let's improve the internal linking system by investigating the Tags in relation to Articles. This will allow users to navigate and group articles based on a common tag.

    Requirement for this step is to have multiple articles added, where some have a common tag.

  5. Tutorial

    Marking up the Contentful contents

    Posted 3 years ago

    Now that we have some content exposed, it might have occurred that it's not really anything useful for a visitor. We're getting a JSON shape from the Contentful API, so let's make turn that into HTML markup using the tools that Contentful provides.

  6. Tutorial

    Add the articles from Contentful to Nuxt3

    Posted 3 years ago

    What makes a website a blog? Articles of course! In the last step we already did a lot of legwork to grab contents and show it on the page, so this is just a repetition of what we already were doing, should be straight forward then!

  7. Tutorial

    Dynamic slugs to pages

    Posted 3 years ago

    In previous parts we've already established a connection to Contentful, but it's a static setup. In this step we'll be mapping a route to a page, which allows for more creativity and less manual maintenance.

  8. Tutorial

    Connecting Nuxt 3 to the Contentful blog

    Posted 3 years ago

    So far we have two unconnected systems. So in this post, we're going to connect them to read from the Pages, Articles and Tags. We're first just going to add all of the utilities and helpers that we'll need. We're going to create a Nuxt plugin and some composables.