This directory contains Nuxt plugins that run when the app is created.
- Use
defineNuxtPluginto register a plugin. - For client-only code (e.g. that uses
window), use the.clientsuffix (e.g.drift.client.js) so the plugin runs only in the browser.
See Nuxt 3 Plugins.