Mastering Nuxt

Mastering Nuxt

@masteringnuxt.com

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

337 followers54 following440 posts

Nuxt Tip πŸ’‘ The stale-while-revalidate pattern: Serve fast, update in background. Users get instant responses (even if slightly stale) and the cache rebuilds in the background. Here's how you can do this in Nuxt/ Nitro.πŸ‘‡

Nuxt Tip πŸ’‘ Want to reduce your initial bundle size? Use the Lazy prefix on component. Components behind v-if still get bundled unless you add "Lazy" to the name. Then they only load when needed.

Mastering Nuxt reposted

JavaScript skills don’t grow by accident. They grow when they’re challenged. ⚑ Get 48 hours FREE access to our Mid-Level JavaScript study guide on Feb 7–8 & put your skills to the test. πŸ’»18 Code Challenges 🧠42 Quizzes πŸ“š17 Lessons πŸ“Trial Exam Sign upπŸ‘‡ https://go.certificates.dev/jsfwx

go.certificates.devCertificates.dev Free Weekend | Free access to JavaScript Developer Certification TrainingUnlock 48 hours of free access to the Certified JavaScript Developer Training on Feb 7-8 2026 . Dive into theory, coding challenges, quizzes, and a trial exam.

Happy 2026! πŸŽ† May your Nuxt apps load faster, your components stay lazy, and your dev workflow stay blissfully bug-free. What feature or improvement do you really hope Nuxt brings in 2026? πŸ”₯

If you encounter an error during server-side rendering, Nuxt provides the `<NuxtClientFallback>` component to display fallback content. It shows a custom UI when a server-rendered component fails. You must enable it by setting `experimental.clientFallback` to `true`.

Happy Holidays from the Mastering Nuxt team πŸ’š We want to send a big thank you to our amazing community of devs & Nuxt enthusiasts. Here’s to more coding, creativity, and incredible Nuxt apps in 2026 πŸ’«

Nuxt Tip of the Week πŸ’‘ If you want to run code on the client before Nuxt does any initialization, use the `onPreHydrate` composable. This lets you manipulate the DOM or add event listeners using only vanilla JavaScript

Building with @nuxt_js in 2026? Start strong before the year ends. End of Year Sale is now live - get can get access to the official Nuxt 4 course for less: ⚑️ Up to 33% off the Full Stack Unleashed Complete ⚑️ 59% off the Super Bundle Get yours todayπŸ‘‡ https://masteringnuxt.com/

masteringnuxt.comMastering Nuxt | The official courses for learning NuxtThe complete guide to developing and deploying fast, production-ready Nuxt apps. MasteringNuxt is the most in-depth, fun, and realistic course made on Nuxt.

Tip of the Day πŸ’‘ With @nuxt_js, 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.

Serious Nuxt apps need serious knowledge - now’s your chance to learn! πŸ’» Cyber Monday is your last shot to grab Mastering Nuxt Full Stack Unleashed, the official course for Nuxt, with full-stack projects, AI chat apps & more - up to 60% off πŸ‘‡ https://vue.school/mnbf25x

vue.schoolMastering Nuxt | The official courses for learning NuxtThe complete guide to developing and deploying fast, production-ready Nuxt apps. MasteringNuxt is the most in-depth, fun, and realistic course made on Nuxt.

Learn Nuxt 4 the official way this Black Friday!πŸš€ πŸ’£ 40% off the Complete Bundle OR πŸ’₯Go all-in with the Super Bundle at 62% off Unlock 100+ lessons & everything Michael Thiessen & the Nuxt team helped build into the official course.πŸ‘‡ https://vue.school/mnbf25x

vue.schoolMastering Nuxt | The official courses for learning NuxtThe complete guide to developing and deploying fast, production-ready Nuxt apps. MasteringNuxt is the most in-depth, fun, and realistic course made on Nuxt.

Nuxt Tip of the Day πŸ’‘ In Nuxt 4.2, you can pass in your own AbortController when data fetching if you need fine-grained control over when requests are canceledπŸ‘‡

Turns out Nuxt versions 3.0 to 3.17. had hidden gems all along. πŸ’Ž We’ve rounded up 26 hidden features, route groups, preview mode, delayed hydration, and more - with examples and tips for upgrading to Nuxt 4. Discover them here πŸ‘‡ https://masteringnuxt.com/blog/26-nuxt-features-you-may-missed

masteringnuxt.com26 Nuxt Features You May Have MissedExplore the most impactful features from Nuxt 3.0 to 3.17 you may have missed β€” with clear examples, explanations, and upgrade notes for Nuxt 4 users.

Mastering Nuxt Fullstack Unleashed is the official @nuxt.com 4 course! πŸ† Built with @michaelthiessen.bsky.social & the Nuxt team, it has 100+ lessons, a full AI chat app, real-world production patterns & more Master full-stack Nuxt dev today - up to 70% off πŸ‘‡ vue.school/mnseb25x

vue.schoolMastering Nuxt | The official courses for learning NuxtThe complete guide to developing and deploying fast, production-ready Nuxt apps. MasteringNuxt is the most in-depth, fun, and realistic course made on Nuxt.

You’re probably building your Nuxt app slower than you need to. Not because you're doing anything wrong… but because Nuxt hides a ton of shortcuts in plain sight. Here are 10 tricks that instantly speed up your workflow. πŸ‘‡ https://masteringnuxt.com/blog/10-dev-tricks-to-build-your-nuxt-app-faster

masteringnuxt.com10 Dev Tricks to Build Your Nuxt App FasterPractical tips and tricks to speed up your Nuxt development workflow, from auto-imports to DevTools and beyond.

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`, & `afterResponse`. You can use these to run custom logic at different stages of the server lifecycle.

Mastering Nuxt reposted

Forget the hardware upgrades - this Black Friday, upgrade you!πŸ’ͺ The Black Friday Early Bird Deal is LIVE: up to 60% OFF @vuejs.org, @nuxt.com, React, Angular, & JavaScript Certification + get bonus items with Mid or Senior Certification🎁 Don’t miss our biggest deal everπŸ‘‡ go.certificates.dev/eb25X

go.certificates.devCertification of Competency for Modern DevelopersGet Certified! Have your developer skills validated and stand out in the crowd for promotions and new positions.

Nuxt Tip Of The Week πŸ’‘ When you want to create a redirect in a server route, Nuxt lets you use the `sendRedirect` method from h3. By default, this sends a 302 (temporary) redirect, but you can specify a different status code if needed.

Nuxt Tip Of The DayπŸ’‘ With Nuxt, since version 3.9, you can control how fetch requests are deduplicated using the dedupe parameter in the useFetch composable. By setting dedupe to 'cancel', the previous request is cancelled and a new one is made whenever parameters change.

Nuxt TipπŸ’‘ 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.

πŸ’‘ 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.

Tip of the day πŸ’‘ When working with Nuxt, you can control where your code runs by checking the environment. Use if (!import.meta.server) to skip code on the server, and if (!import.meta.client) to skip code on the client.

πŸ”₯Β ViteConf 2025 is almost here! πŸ”₯ Join Evan You, Daniel Roe, Anthony Fu, and more for two days of deep Vite talks, workshops, and the latest in web tech. See how Vite is powering Nuxt and shaping the future of web development. 🎟️ Info & Tickets here: https://viteconf.amsterdam/

viteconf.amsterdamViteConfThe Official in-person Vite Conference organised in collaboration with the Creator of Vite, Evan You and Vite Core Team!

When writing unit tests, Nuxt provides a way to opt-in to a Nuxt environment by adding `.nuxt.` to your test filenames. For example, you can name your test file like this πŸ‘‡

Tip of the day πŸ’‘ In Nuxt you can pass route objects to `navigateTo`, similar to `router.push` in Vue Router. This enables navigation using named routes, query parameters, or hash fragments.

In Nuxt, you might need to display debug info or tools like a DevAccountSwitcher component that should only be visible during development. πŸ€“ To do this, wrap your component with a `&lt;DevOnly&gt;` tag in your layout file. This component will be excluded from your production build.

If you want to run code on the client before Nuxt does any initialization, use the `onPreHydrate` composable. This lets you manipulate the DOM or add event listeners using only vanilla JavaScript:

Did you know that when using auth in a Nuxt app, we need to make sure that the cookie is passed from the frontend to the backend? πŸ™Œ We can do that with useRequestHeaders (or useRequestHeader):

πŸ’‘When working with Nuxt, it's common to need different configurations for dif. environments, like dev, testing, or prod. Instead of using conditional logic with `process.env.NODE_ENV`, you can use special keys in your Nuxt config for a cleaner and more type-safe approach.

πŸ’‘ Tip of the day: Modules can only affect your Nuxt app during build time. But we can use methods from @nuxt/kit to do things that influence the runtime behaviour:

When do we use `NuxtErrorBoundary` in Nuxt? πŸ€” We should wrap it around distinct chunks of functionality where you can handle a group of potential errors together: - `NuxtPage` components that represent nested routes - Widgets on a dashboard - Modals

Did you know that when you need to set up redirects, Nuxt makes it easy using route rules in your configuration? πŸ’» You can define a redirect for any route, and by default, it uses a temporary 307 status code. This is the simplest & most efficient way to handle basic redirects.

For debugging purposes, Nuxt can add a custom class to a `NuxtLink` once its route has been prefetched. 🧠 You can specify this class using the `prefetched-class` prop, which helps you visually identify prefetched links during development.

πŸ’‘Tip of the day: In Nuxt, you can validate the request body before using it by leveraging readValidatedBody from h3. Provide a validation function to ensure the body meets your requirements.

πŸ’‘ Tip of the day: In Nuxt, you can check for specific error codes like 404 using the statusCode property from the useError composable. This lets you show a custom message for not found pages, while handling other errors differently.

Did you know with Nuxt, you can use `mountSuspended` to mount your app at a specific route by passing the App component and a route option? πŸ’» This is useful for testing route-specific content or behavior in your Nuxt application.

You can configure Nuxt to treat any folder as a global components directory by updating your `nuxt.config` file. πŸ—ƒοΈ For example, to add a custom folder for global components:

πŸ’‘ Tip of the day: Within Nuxt, the `useLoadingIndicator` composable is used by the `&lt;NuxtLoadingIndicator&gt;` component. You can also trigger it manually in plugins using the `page:loading:start` and `page:loading:end` hooks.

When working with hydration in plugins, Nuxt provides the `useHydration` composable. 🧠 This utility lets you sync data between server and client by using hooks and the Nuxt payload system.