Mastering Nuxt's Avatar

Mastering Nuxt

@masteringnuxt.com.bsky.social

Learn how to develop and deploy fast, production-ready Nuxt apps. Courses developed in collaboration with @nuxt.com Powered by @bitterbrains.com

319 Followers  |  54 Following  |  372 Posts  |  Joined: 06.11.2024  |  1.9022

Latest posts by masteringnuxt.com on Bluesky

Have you started using Nuxt 4?

If not, what are you waiting for?

07.08.2025 14:33 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Did you know that if you return null from a Nuxt event handler, h3 will automatically respond with a 204 No Content status? This makes it easy to signal empty responses without extra configuration. 😏

06.08.2025 14:33 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

πŸ’‘Tip of the day:
If we wanted to make a basic link shortener service in Nuxt, we can do that pretty easily using a server route and sendRedirect.

We’ll create this file at `server/route/link/[hash].ts`:

05.08.2025 14:33 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

πŸš€ Nuxt devs! The Official Vue.js Free Weekend by Certificates.Dev is coming Aug 23–24! Get 48h FREE access to Vue.js Mid-Level Cert Training, perfect for Nuxt skills.

Code challenges, trial exam & more! Sign up:
https://certificates.dev/vuejs/free-weekend

05.08.2025 08:27 β€” πŸ‘ 2    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0

If the validation fails, returning `false` will prevent navigation to the page.

04.08.2025 14:34 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

With Nuxt, you can use the `validate` property inside `definePageMeta` to check if a route is valid before navigating to a page. πŸ€“

This is especially useful when multiple pages could match a route, and you want to ensure the parameters are correct. ⬇️

04.08.2025 14:34 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

πŸ’‘Tip of the day:
Nitro, the server that Nuxt uses, comes with a very powerful storage system.

You can configure it to store data in your filesystem, database, a key-value store, and many other places:

03.08.2025 14:33 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

You can use these hooks to run custom logic at different stages of the server lifecycle.

02.08.2025 14:34 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Did you know that when working with Nuxt, the `nitroApp` object inside plugins gives you access to various runtime hooks?

These hooks include `close`, `error`, `render:response`, `request`, `beforeResponse`, and `afterResponse`. ⬇️

02.08.2025 14:34 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

Did you know that with Nuxt, you can access the entire payload sent from the server to the client using the `useNuxtApp` composable? πŸ’»

This allows you to inspect all the data and state transferred during SSR or hydration.

01.08.2025 14:35 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

It waits for Nuxt to finish hydrating and then schedules your task using `requestIdleCallback`, so it runs when the browser is idle.

31.07.2025 14:33 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

πŸ’‘Tip of the day:
In Nuxt you can use the `onNuxtReady` composable to load heavy resources or execute code on the client side without blocking the main thread.

⬇️

31.07.2025 14:33 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
Mastering Nuxt | The official courses for learning Nuxt The complete guide to developing and deploying fast, production-ready Nuxt apps. MasteringNuxt is the most in-depth, fun, and realistic course made on Nuxt.

Use the code: `NUXT4RDY` at checkout. 🎟️

The full curriculum is live:
βœ… 12 chapters
βœ… 110+ lessons
βœ… 1 production-ready fullstack Nuxt 4 app

31.07.2025 08:15 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Mastering Nuxt | The official courses for learning Nuxt The complete guide to developing and deploying fast, production-ready Nuxt apps. MasteringNuxt is the most in-depth, fun, and realistic course made on Nuxt.

The celebration for completing Mastering Nuxt Full Stack Unleashed is ending soon! πŸ₯³

Get the full Nuxt 4 experience – with everything from GitHub OAuth and route middleware to typed errors, and an AI-powered chatbot – at the early access price. πŸ‘‡

vist.ly/3zrv4

31.07.2025 08:15 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

πŸ“• Nuxt x Vercel: A Reflection on Belief and Trust

πŸ‘‰πŸ» Read why Magic as a Serviceβ„’ chose Vue and Nuxt years ago.

https://maas.engineering/posts/reflections-on-nuxt

30.07.2025 18:00 β€” πŸ‘ 4    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0

🌱 Released H3.dev (beta 2 and 3) today:

- Middleware `next()` does not need explicit return
- Unhandled errors are logged by default
- Experimental `defineRoute`
- New `app.request` method
(stricter `app.fetch` for runtime safety)

We are closer to the stable v2 release πŸ’ͺ

30.07.2025 18:32 β€” πŸ‘ 54    πŸ” 3    πŸ’¬ 2    πŸ“Œ 0
Post image

πŸ’‘If you need more flexibility, Nuxt lets you use inline middleware in `definePageMeta` instead of `validate`.

Note that you can't use both `validate` and `middleware` together, but you can refactor your validation logic into a middleware function for more advanced use cases.

30.07.2025 14:34 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

How long have you been writing Nuxt? πŸ’š

29.07.2025 14:34 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

These hooks help you further customize the server-side rendering process.

28.07.2025 14:34 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

πŸ’‘Tip of the day:
In addition to standard Nitro hooks, Nuxt adds extra hooks you can use in your plugins.

These include `dev:ssr-logs` for server-side logs, `render:html` before server rendering, and `render:island` before rendering an island component.

πŸ‘‡

28.07.2025 14:34 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Mastering Nuxt Fullstack Unleashed is Now Complete
Nuxt 4 is here! Open this to learn more: πŸ‘‡Since Mastering Nuxt: Full Stack Unleashed is fully up-to-date, you can start learning Nuxt 4 now.--Our plan is to... Mastering Nuxt Fullstack Unleashed is Now Complete

To celebrate this, we have a special offer until 31 July: 🎟️
If you haven't purchased the course yet, get an extra $50 off by using the code `NUXT4RDY`.
If you have purchased it, share this offer with a friend!

28.07.2025 08:38 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Mastering Nuxt Fullstack Unleashed is Now Complete
Nuxt 4 is here! Open this to learn more: πŸ‘‡Since Mastering Nuxt: Full Stack Unleashed is fully up-to-date, you can start learning Nuxt 4 now.--Our plan is to... Mastering Nuxt Fullstack Unleashed is Now Complete

Since `Mastering Nuxt: Full Stack Unleashed` is fully up-to-date, you can start learning Nuxt 4 now. πŸ’š

We plan to keep this course updated as Nuxt changes, and eventually add more courses so that you can go even deeper in your understanding.

There are more below πŸ‘‡
https://youtu.be/TJhct1LlFws

28.07.2025 08:38 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Hey folks! Do you have any cool tips or tricks, or anything else that you think the Nuxt community should know about?

If so, don't hesitate to leave a comment, and we'll share it with our audience, attributing you.
Or if it's a longer post, feel free to DM us. πŸ€—

27.07.2025 13:10 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

πŸ’‘Tip of the day:
In Nuxt you can return an error directly from the `validate` function in `definePageMeta` if something is wrong with the route parameters.

This is helpful for showing custom error messages, such as when a chapter does not exist in a course.

26.07.2025 14:34 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

πŸ’β€β™€οΈ With Nuxt, when you set `keepalive: true` in the `definePageMeta` of a child page, its state will be preserved even when navigating between sibling pages.
βœ… This ensures that switching between child routes does not reset their state, regardless of the parent or `NuxtPage` settings.

25.07.2025 14:34 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

πŸ“’ We've been working on this for a long time, and it's finally ready!

The complete official course for Nuxt 4 is now available!
To celebrate, we're giving you a redeem codeβ€”use NUXT4RDY at checkout.

βœ…110+ Lessons
βœ…AI-powered project
βœ…& more

https://masteringnuxt.com/2025/redeem

24.07.2025 14:33 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

πŸ’‘ Tip of the day:
In Nuxt you can provide a key to `callOnce`, similar to how you use keys with `useFetch` or `useAsyncData`.

This is useful when you need to track execution for multiple items or contexts, ensuring each unique key only runs its associated code once:

24.07.2025 09:13 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Did you know that by default, Nuxt composables like `useFetch` and `useAsyncData` will reactively re-fetch data as their parameters are updated? πŸ™†β€β™‚οΈ

This means that any change in the parameters will cancel the current request and start a new one automatically.

23.07.2025 14:34 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

When building with Nuxt, how do you approach SEO optimization?

Are you using the Nuxt SEO module by Harlan Wilton?

Any tips or pitfalls to avoid? πŸ‘€

23.07.2025 09:13 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
GitHub - nuxt-modules/supabase: Supabase module for Nuxt. Supabase module for Nuxt. Contribute to nuxt-modules/supabase development by creating an account on GitHub.

@nuxt.com x @supabase.com module is now compatible with Nuxt 4 β˜‘

πŸ‘‰ github.com/nuxt-modules...

22.07.2025 16:01 β€” πŸ‘ 14    πŸ” 2    πŸ’¬ 0    πŸ“Œ 0

@masteringnuxt.com is following 20 prominent accounts