[Vuejs]-How to use a global server side variable in Nuxtjs v2 without Vuex store

0👍

You can create a store do this using a middleware or Pinia. Middleware allows you to define create custom functions and rendering on all pages

See this to use a middleware
https://debbie.codes/blog/nuxt-middleware/

Using Pinia
https://pinia.vuejs.org/getting-started.html

Leave a comment