I am using Nuxt Content to store application content (JSON files). It works cool in dev mode with hot reload. The backend of my site changes any file in content folder and this changes immediately in the browser without reloading the page. But in production mode nothing changes even after a page reload. I've tried using Handling Hot Reload without process.dev
condition:
export default function ({ store }) {
window.onNuxtReady(($nuxt) => {
$nuxt.$on('content:update', ({ event, path }) => {
console.log('content:update')
store.dispatch('fetchContentData')
})
})
}
But it doesn't even work on page reload. How to make a hot reload in production mode working without reload, or at least with reload