All quizzesHard
Nitro & Modules
Preview — 3 of 10 questions
What is Nitro and how does it differ from a traditional Node.js/Express server?
ANitro is Nuxt's CSS preprocessing engine — it replaces PostCSS
BNitro is the name for Nuxt's module system — replacing the @nuxtjs package namespace
CNitro is a static site generator that replaces Vite in Nuxt 3
DNitro is Nuxt's server engine that compiles server code into platform-agnostic output deployable to Node.js, Vercel, Cloudflare Workers, AWS Lambda, and other targets without code changes
How do you implement file uploads in Nitro server routes?
AUse readMultipartFormData(event) from H3 (Nitro's HTTP library) to parse multipart form data
BUse express.multer() middleware — Nitro is compatible with Express middleware
CFile uploads must go directly to cloud storage — Nitro cannot process binary data
DUse the @nuxtjs/upload module — file uploads are not supported natively
What is the correct structure for a programmatic Nuxt module?
AExport a function using defineNuxtModule that receives the module options and Nuxt context, and uses Nuxt kit utilities to add components, composables, plugins, and server routes
BExport a Vue component — Nuxt automatically registers it as a module
CUse module.exports = { setup(config) { ... } } — standard CommonJS module format
DCreate a .nuxtmodule configuration file in the project root
Sign up free to play
Answer all 10 questions (7 more), see explanations for every answer, and track your score.