nuxtServerinit Nuxt3

import { defineNuxtPlugin } from '#app'

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