·
0 min read

Nuxt Tip: Accessing Pinia Store in Production Build

Michael Hoffmann

Michael Hoffmann

@mokkapps

Nuxt Tip: Accessing Pinia Store in Production Build Image

During local development, you can easily debug your Pinia store using the Nuxt Devtools. However, when you build your Nuxt application for production, the way you access your Pinia store changes slightly.

To access your Pinia store in a Nuxt production build, you can use the following command in your browser's console:

useNuxtApp().$pinia.state.value

If you liked this Vue tip, follow me on BlueSky to get notified about new tips, blog posts, and more. Alternatively (or additionally), you can subscribe to my weekly Vue & Nuxt newsletter :

I will never share any of your personal data. You can unsubscribe at any time.