#differences between SRR for yarn dev & yarn build

5 messages · Page 1 of 1 (latest)

visual forge
#

Wrapp it arround a process.server statement:

export default defineNuxtPlugin(async nuxtApp => {
  if (process.server) {
    const storeData = useMyStore(nuxtApp.$pinia)
    await storeData.use()
  }
})
patent flame
#

oh right... now is problem with userStore.me(). docs says that useCookie and useRuntimeConfig only works during setup or Lifecycle Hooks. l hope its problem xD

clear yarrow
#

Sorry @patent flame a question out of curiosity here:
How do you check a nuxt page with "ssr preview"?
Thanks!

patent flame
visual forge