Learn how to develop and deploy fast, production-ready Nuxt apps.
Courses developed in collaboration with @Nuxt_js
Powered by @Bitter_Brainsmasteringnuxt.comJoined September 2020
If you want to run code on the client before @nuxt_js does any initialization, use the `onPreHydrate` composable.
This lets you manipulate the DOM or add event listeners using only vanilla JavaScript:
You can easily include global CSS files in every page by using the css config value in @nuxt_js. This gives you consistent styling across your entire Nuxt app.
Did you know that when using auth in a @nuxt_js 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_js, 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 and most efficient way to handle basic redirects.
Learn how the NuxtErrorBoundary component in Nuxt 3 works under the hood to gracefully handle client-side errors. Let's explore its powerful features, source code, and practical use cases to help you write more resilient Vue apps. 💻
By @MichaelThiessen.
masteringnuxt.com/blog/how-nuxte…
For debugging purposes, @nuxt_js 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_js, 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.
Vercel's acquisition of NuxtLabs has major implications for the Nuxt ecosystem, from faster development to deeper platform integrations.
This article breaks down what really happened. By @MichaelThiessen.
masteringnuxt.com/blog/vercel-ac…
💡 Tip of the day:
In @nuxt_js, 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.
The Official @nuxt_js Senior Developer Certification is now available! 🎉
This advanced certification is designed to test your real-world Nuxt skills - from building and scaling complex applications, to optimizing performance, managing global state, using TypeScript effectively,…
Did you know with @nuxt_js, 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.
Ref vs. reactive in @vuejs.
Which is better?
Does it even matter?
If you're still wondering about this, I spent 10+ hours researching this question.
I put it all together in this article, along with my own recommendations.
michaelnthiessen.com/ref-vs-reactive
You can configure @nuxt_js 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 `<NuxtLoadingIndicator>` component.
You can also trigger it manually in plugins using the `page:loading:start` and `page:loading:end` hooks.
102K Followers 225 FollowingNuxt is a progressive web framework to build performant and production-grade web apps and websites with Vue. https://t.co/hBNE0dql4W
2K Followers 9 FollowingJoin 20,000+ devs at the world's largest FREE Vue.js event to learn all about Vue.js and its ecosystem! 🚀
Follow @frontendnation for all future Vue.js events!
3K Followers 1K FollowingFather, Husband, Human Being, Teacher/Content Creator @VueSchool_io, Web Dev, tweets about @vuejs, @nuxt_js, @laravelphp, and dev life
92 Followers 1K FollowingI AM a (Godlike) Life Engineer (including a Technical Product & Program Manager, and a Software Engineer) evolving in leading this Life to a delight like Eden
50 Followers 718 FollowingGreatness isn’t found in perfection; it’s forged through persistence, embracing imperfection, and striving relentlessly for improvement.
58 Followers 60 FollowingPassionné par l'informatique 🖥️ et le Japon 🇯🇵 (~N5).
Consommateur de LNs à mi-temps 📖.
Vice-président @NovelStar_Off ✨
Bannière par @ShihoLitchi 🐕
53 Followers 167 Following👨💻💚 Passionate Developer and proud Vue.js enthusiast. 💻✨ I turn ideas into beautiful code! 🚀💡
Building https://t.co/CC7Sa29tpz
5 Followers 52 Following🧑💻 Developer #flutter @OrkesterSAS 📱
🚚 Co-Founder foodtrucktoday - Mobile App
📹 Find me on Youtube at developMe - Coding flutter and other
102K Followers 225 FollowingNuxt is a progressive web framework to build performant and production-grade web apps and websites with Vue. https://t.co/hBNE0dql4W
320K Followers 529 FollowingProgressive JavaScript framework for building modern web interfaces. Created by @youyuxi, maintained by https://t.co/GBCO6zpjho.
6K Followers 28 FollowingNuxt Studio is a new editing experience for your Nuxt Content website, offering infinite customization and user-friendly edition
2K Followers 9 FollowingJoin 20,000+ devs at the world's largest FREE Vue.js event to learn all about Vue.js and its ecosystem! 🚀
Follow @frontendnation for all future Vue.js events!
3K Followers 1K FollowingFather, Husband, Human Being, Teacher/Content Creator @VueSchool_io, Web Dev, tweets about @vuejs, @nuxt_js, @laravelphp, and dev life
607 Followers 1K FollowingWeb Developer and content writer @ https://t.co/koOuPAvHsy ... Anime addict... 😘😘😍 passion to always be better than I was yesterday
92 Followers 12 FollowingBuilding the future for 25 million+ developers worldwide to grow, adapt, and succeed in today’s fast-paced tech environment.
Discover more about us 👇
2K Followers 109 FollowingCommunity hub for all things frontend! Stay updated with the latest news, dev insights, & yearly events!
Sign up for updates👇
774 Followers 15 FollowingTransform your Vue.js state management skills with Mastering Pinia!
Course developed by the author of Pinia, @posva
Powered by @VueSchool_io.
46K Followers 124 FollowingBringing the Vue.js community together. The #1 source for the latest courses, articles, news & showcases. Tag @vuejsdevelopers to be featured.
3K Followers 128 FollowingValidate and certify your development skills. Unlock a world of opportunities through industry recognized certifications.
Powered by @Bitter_Brains
2K Followers 18 FollowingBuild with Vue.js & learn from top experts in the community through app & feature builds!
Follow @frontendnation for all updates on future events
5K Followers 331 FollowingUpdates, tutorials, examples, tech news & more for developers working with @useAlokai - A Lightning-Fast Frontend Platform for Headless Commerce.
10K Followers 767 FollowingHusband, Father, Entrepreneur and more…
⛰️ Author of @nuxt_js
🌋 Co-Founder of @nuxtlabs (Acquired by @vercel)
🐰 VP of Engineering @directus
23K Followers 88 FollowingCloudinary helps more than 2M users and 10k brands manage, transform, optimize, and deliver engaging visual experiences at scale.