NuxtServerInit Nuxt 3

import { defineNuxtPlugin } from '#app'

export default defineNuxtPlugin((nuxtApp) => {
  if (process.server) {
    // ...
  }
})
Injury